Commit 88ac1058 authored by Kamal Marhubi's avatar Kamal Marhubi

Remove unnecessary details from error messages

parent a6b047a7
......@@ -434,7 +434,7 @@ public:
auto orphanage = Orphanage::getForMessageContaining(output);
consume('[');
KJ_REQUIRE(++nestingDepth_ <= maxNestingDepth_, "JSON message nested too deeply.", nestingDepth_);
KJ_REQUIRE(++nestingDepth_ <= maxNestingDepth_, "JSON message nested too deeply.");
KJ_DEFER(--nestingDepth_);
while (consumeWhitespace(), nextChar() != ']') {
......@@ -464,7 +464,7 @@ public:
auto orphanage = Orphanage::getForMessageContaining(output);
consume('{');
KJ_REQUIRE(++nestingDepth_ <= maxNestingDepth_, "JSON message nested too deeply.", nestingDepth_);
KJ_REQUIRE(++nestingDepth_ <= maxNestingDepth_, "JSON message nested too deeply.");
KJ_DEFER(--nestingDepth_);
while (consumeWhitespace(), nextChar() != '}') {
......
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