We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9b25b8 commit 566e8bcCopy full SHA for 566e8bc
tasks/instructions/utils/elements.js
@@ -2,10 +2,10 @@ function checkError (result) {
2
if (result) {
3
const error = result.error
4
if (error) {
5
- const exception = new Error(result.message)
6
- exception.name = error
7
- exception.data = result.data
8
- exception.stacktrace = result.stacktrace
+ const exception = new Error(error.message)
+ exception.name = error.error
+ exception.data = error.data
+ exception.stacktrace = error.stacktrace
9
throw exception
10
}
11
0 commit comments