aboutsummaryrefslogtreecommitdiffhomepage
path: root/message.cc
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-10-23 14:45:33 -0700
committerGravatar Carl Worth <cworth@cworth.org>2009-10-23 14:45:33 -0700
commita5e619f11ffe034cfe2dc13207961ed6db5ab5ba (patch)
tree783df7118e4372c58389f4331446051db4224822 /message.cc
parentb3cbcea8fdfdc71c5021fac483943a45ace816d3 (diff)
_find_prefix: Exit when given an invalid prefix name.
This will be a nice safety check for internal sanity.
Diffstat (limited to 'message.cc')
-rw-r--r--message.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/message.cc b/message.cc
index c5a6273f..b304a22e 100644
--- a/message.cc
+++ b/message.cc
@@ -99,6 +99,9 @@ _find_prefix (const char *name)
if (strcmp (name, BOOLEAN_PREFIX[i].name) == 0)
return BOOLEAN_PREFIX[i].prefix;
+ fprintf (stderr, "Internal error: No prefix exists for '%s'\n", name);
+ exit (1);
+
return "";
}