projects
/
notmuch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b3cbcea
)
_find_prefix: Exit when given an invalid prefix name.
author
Carl Worth
<cworth@cworth.org>
Fri, 23 Oct 2009 21:45:33 +0000
(14:45 -0700)
committer
Carl Worth
<cworth@cworth.org>
Fri, 23 Oct 2009 21:45:33 +0000
(14:45 -0700)
This will be a nice safety check for internal sanity.
message.cc
patch
|
blob
|
history
diff --git
a/message.cc
b/message.cc
index c5a6273fdea65bd2e3a5ee41f2e57bd1b6882efc..b304a22e73c2c3051665136abc3f3e25ff00d073 100644
(file)
--- 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 "";
}