forked from rosa/hakurei
Compare commits
2 Commits
29cfb2e8bc
...
073ac05b4f
| Author | SHA1 | Date | |
|---|---|---|---|
|
073ac05b4f
|
|||
|
28bc673e9a
|
@@ -116,8 +116,8 @@ function extractExceptionString(e: any): string {
|
||||
// properties.
|
||||
const s = String(e);
|
||||
if (!(e instanceof Error && "stack" in e)) return s;
|
||||
// v8 (Chromium, NodeJS) include the error message, while Firefox and WebKit
|
||||
// do not.
|
||||
// v8 (Chromium, NodeJS) include the error message, while
|
||||
// Firefox and WebKit do not.
|
||||
if (e.stack.startsWith(s)) return e.stack;
|
||||
return `${s}\n${e.stack}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user