diff --git a/app/utils/format.ts b/app/utils/format.ts index 6c205c36..450d6669 100644 --- a/app/utils/format.ts +++ b/app/utils/format.ts @@ -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"); }