This commit is contained in:
iceman1001 2020-10-06 16:17:57 +02:00
commit 01c35a9bfb

View file

@ -740,8 +740,12 @@ static int unpack(scanner_t *s, json_t *root, va_list *ap) {
case 'b': case 'b':
if (root && !json_is_boolean(root)) { if (root && !json_is_boolean(root)) {
set_error(s, "<validation>", json_error_wrong_type, "Expected true or false, got %s", set_error(s,
type_name(root)); "<validation>",
json_error_wrong_type,
"Expected true or false, got %s",
type_name(root)
);
return -1; return -1;
} }