[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] 16/16: [libgroff]: Fix diagnostic error wording.
From: |
G. Branden Robinson |
Subject: |
[groff] 16/16: [libgroff]: Fix diagnostic error wording. |
Date: |
Sat, 6 Nov 2021 01:38:22 -0400 (EDT) |
gbranden pushed a commit to branch master
in repository groff.
commit 5d79c1137f1acc1e830d98c62589b8837f9b18f0
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Sat Nov 6 15:20:48 2021 +1100
[libgroff]: Fix diagnostic error wording.
* src/libs/libgroff/font.cpp (font::load): Fix diagnostic message; this
is issued when an unrecognized directive is encountered, so it
necessarily occurs _before_ any `charset` or `kernpairs` directive.
Give the user a hint accordingly.
---
ChangeLog | 9 +++++++++
src/libs/libgroff/font.cpp | 4 ++--
2 files changed, 11 insertions(+), 2 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 2c44050..0ece7a9 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,14 @@
2021-11-06 G. Branden Robinson <g.branden.robinson@gmail.com>
+ [libgroff]: Fix diagnostic error wording.
+
+ * src/libs/libgroff/font.cpp (font::load): Fix diagnostic
+ message; this is issued when an unrecognized directive is
+ encountered, so it necessarily occurs _before_ any `charset` or
+ `kernpairs` directive. Give the user a hint accordingly.
+
+2021-11-06 G. Branden Robinson <g.branden.robinson@gmail.com>
+
[man]: Fix paragraph tag regressions.
* tmac/an-ext.mac (UR, MR): Only create an environment and
diff --git a/src/libs/libgroff/font.cpp b/src/libs/libgroff/font.cpp
index 033428b..2168afa 100644
--- a/src/libs/libgroff/font.cpp
+++ b/src/libs/libgroff/font.cpp
@@ -1004,8 +1004,8 @@ bool font::load(bool load_header_only)
}
}
else {
- t.error("unrecognized font description directive '%1' after"
- " 'kernpairs' or 'charset'", directive);
+ t.error("unrecognized font description directive '%1' (missing"
+ " 'kernpairs' or 'charset'?)", directive);
return false;
}
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] 16/16: [libgroff]: Fix diagnostic error wording.,
G. Branden Robinson <=