groff-commit
[Top][All Lists]
Advanced

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

[groff] 05/20: [lookbib]: Make `assert()` message communicative.


From: G. Branden Robinson
Subject: [groff] 05/20: [lookbib]: Make `assert()` message communicative.
Date: Mon, 21 Oct 2024 20:14:51 -0400 (EDT)

gbranden pushed a commit to branch master
in repository groff.

commit 1338938fe70cd984331633a1249a875022217441
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Fri Oct 18 17:49:21 2024 -0500

    [lookbib]: Make `assert()` message communicative.
    
    * src/utils/lookbib/lookbib.cpp (main): Make `assert()` message
      communicative.
---
 ChangeLog                     | 5 +++++
 src/utils/lookbib/lookbib.cpp | 2 +-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index d5f724ed3..025639725 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-10-18  G. Branden Robinson <g.branden.robinson@gmail.com>
+
+       * src/utils/lookbib/lookbib.cpp (main): Make `assert()` message
+       communicative.
+
 2024-10-18  G. Branden Robinson <g.branden.robinson@gmail.com>
 
        Make more commands exit with status 2 on usage error.
diff --git a/src/utils/lookbib/lookbib.cpp b/src/utils/lookbib/lookbib.cpp
index f78b978b3..c3affaec1 100644
--- a/src/utils/lookbib/lookbib.cpp
+++ b/src/utils/lookbib/lookbib.cpp
@@ -95,7 +95,7 @@ int main(int argc, char **argv)
       exit(2);
       break;
     default:
-      assert(0);
+      assert(0 == "unhandled case of command-line option");
     }
   if (optind >= argc) {
     usage(stderr);



reply via email to

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