We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 93d0e4b commit 52e80fbCopy full SHA for 52e80fb
1 file changed
common/src/util/error.ts
@@ -16,6 +16,7 @@ export type ErrorObject = {
16
name: string
17
message: string
18
stack?: string
19
+ rawError?: string
20
}
21
22
export function success<T>(value: T): Success<T> {
@@ -38,6 +39,7 @@ export function getErrorObject(error: any): ErrorObject {
38
39
name: error.name,
40
message: error.message,
41
stack: error.stack,
42
+ rawError: JSON.stringify(error, null, 2),
43
44
45
0 commit comments