summaryrefslogtreecommitdiffstats
path: root/c/jv.c
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2012-09-11 10:37:44 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2012-09-11 10:37:44 +0100
commit4c7bede5a46ef25b3d8d06c851d145804f60e20a (patch)
treea9ce2780f7ce73dcad0d242af6d380c16458924b /c/jv.c
parent0ce437ea9743fc443704181cf785c10b771b8f07 (diff)
Better error handling and messages for invalid index/assign operations.
Diffstat (limited to 'c/jv.c')
-rw-r--r--c/jv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/c/jv.c b/c/jv.c
index f8b79ce6..214354ce 100644
--- a/c/jv.c
+++ b/c/jv.c
@@ -49,7 +49,7 @@ const char* jv_kind_name(jv_kind k) {
case JV_KIND_ARRAY: return "array";
case JV_KIND_OBJECT: return "object";
}
- assert(0);
+ assert(0 && "invalid kind");
return "<unknown>";
}