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

Remove unnecessary details from error messages

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