We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c348b51 commit af35d18Copy full SHA for af35d18
common/src/util/error.ts
@@ -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