json_dumper: make json_dumper_bad fatal.
[metze/wireshark/wip.git] / wsutil / json_dumper.c
index 43db64ec646e1c2fc416af36dc5b01e7437e22f7..c3ca01a86c09df8459f16d33984215a98a78e800 100644 (file)
@@ -95,7 +95,7 @@ json_dumper_bad(json_dumper *dumper, enum json_dumper_change change,
         /* Console output can be slow, disable log calls to speed up fuzzing. */
         return;
     }
-    g_warning("Bad json_dumper state: %s; change=%d type=%d depth=%d prev/curr/next state=%02x %02x %02x",
+    g_error("Bad json_dumper state: %s; change=%d type=%d depth=%d prev/curr/next state=%02x %02x %02x",
             what, change, type, dumper->current_depth, states[0], states[1], states[2]);
 }