groff-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[groff] 03/08: src/roff/troff/div.cpp: Fix misleading diagnostic.


From: G. Branden Robinson
Subject: [groff] 03/08: src/roff/troff/div.cpp: Fix misleading diagnostic.
Date: Fri, 25 Sep 2020 06:30:56 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 9cdfe0370cf7143b05ee3bdedbed9847eae68def
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Sep 25 18:10:21 2020 +1000

    src/roff/troff/div.cpp: Fix misleading diagnostic.
    
    src/roff/troff/div.cpp (top_level_diversion::clear_diversion_trap): Fix
    copy and paste error in diagnostic, which wrongly reported that a
    top-level diversion trap couldn't be "set" when "clear"ed was meant.
    
    Dates back to 1991-06-21 or earlier.
---
 ChangeLog              | 7 +++++++
 src/roff/troff/div.cpp | 2 +-
 2 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index a951beb..67521fb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2020-09-25  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/roff/troff/div.cpp
+       (top_level_diversion::clear_diversion_trap): Fix copy and paste
+       error in diagnostic, which wrongly reported that a top-level
+       diversion trap couldn't be "set" when "clear"ed was meant.
+
 2020-09-19  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        * src/preproc/grn/main.cpp (conv):
diff --git a/src/roff/troff/div.cpp b/src/roff/troff/div.cpp
index 66382a8..920a38c 100644
--- a/src/roff/troff/div.cpp
+++ b/src/roff/troff/div.cpp
@@ -868,7 +868,7 @@ void top_level_diversion::set_diversion_trap(symbol, vunits)
 
 void top_level_diversion::clear_diversion_trap()
 {
-  error("can't set diversion trap when no current diversion");
+  error("can't clear diversion trap when no current diversion");
 }
 
 void diversion_trap()



reply via email to

[Prev in Thread] Current Thread [Next in Thread]