Merge pull request #1782 from yanCode/fix/json-format

fix: the display format of json error
main
Yifei Zhang 2 years ago committed by GitHub
commit 6502855a70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,5 +6,8 @@ export function prettyObject(msg: any) {
if (msg === "{}") {
return obj.toString();
}
if (msg.startsWith("```json")) {
return msg;
}
return ["```json", msg, "```"].join("\n");
}

Loading…
Cancel
Save