more verbose for error

This commit is contained in:
fyears 2022-04-06 01:27:42 +08:00
parent 6f339583c1
commit 5a4e8e51a1

View File

@ -366,7 +366,7 @@ export const toText = (x: any) => {
typeof x.stack === "string" && typeof x.stack === "string" &&
typeof x.message === "string") typeof x.message === "string")
) { ) {
return (x.stack || x.message) as string; return `ERROR! MESSAGE: ${x.message}, STACK: ${x.stack}`;
} }
try { try {