diff options
-rw-r--r-- | src/node_report.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/node_report.cc b/src/node_report.cc index 84caf13c5b..cabf8cf662 100644 --- a/src/node_report.cc +++ b/src/node_report.cc @@ -366,7 +366,6 @@ static void PrintJavaScriptStack(JSONWriter* writer, int line = ss.find('\n'); if (line == -1) { writer->json_keyvalue("message", ss); - writer->json_objectend(); } else { std::string l = ss.substr(0, line); writer->json_keyvalue("message", l); @@ -382,8 +381,8 @@ static void PrintJavaScriptStack(JSONWriter* writer, ss = ss.substr(line + 1); line = ss.find('\n'); } + writer->json_arrayend(); } - writer->json_arrayend(); writer->json_objectend(); } |