Skip to content

Commit af35d18

Browse files
committed
getErrorObject util function
1 parent c348b51 commit af35d18

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

common/src/util/error.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
export function getErrorObject(error: any) {
2+
return {
3+
message: error.message,
4+
stack: error.stack,
5+
name: error.name,
6+
}
7+
}

0 commit comments

Comments
 (0)