Commit 4b2db192 authored by Kamal Marhubi's avatar Kamal Marhubi

Make errors in JSON string escapes more uniform

parent 44652c66
......@@ -584,7 +584,7 @@ public:
unescapeAndAppend(kj::arrayPtr(remaining_.begin(), 4), decoded);
advance(4);
break;
default: KJ_FAIL_REQUIRE("invalid escape", nextChar()); break;
default: KJ_FAIL_REQUIRE("Invalid escape in JSON string."); break;
}
}
......@@ -637,7 +637,7 @@ public:
} else if ('A' <= c && c <= 'F') {
codePoint |= c - 'A';
} else {
KJ_FAIL_REQUIRE("invalid hex digit in unicode escape", c);
KJ_FAIL_REQUIRE("Invalid hex digit in unicode escape.", c);
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment