From 5a4e8e51a1c7347afae30e402ee2bf2b32f83849 Mon Sep 17 00:00:00 2001 From: fyears <1142836+fyears@users.noreply.github.com> Date: Wed, 6 Apr 2022 01:27:42 +0800 Subject: [PATCH] more verbose for error --- src/misc.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc.ts b/src/misc.ts index 006ac82..b3fe267 100644 --- a/src/misc.ts +++ b/src/misc.ts @@ -366,7 +366,7 @@ export const toText = (x: any) => { typeof x.stack === "string" && typeof x.message === "string") ) { - return (x.stack || x.message) as string; + return `ERROR! MESSAGE: ${x.message}, STACK: ${x.stack}`; } try {