Skip to content

Commit 566e8bc

Browse files
committed
fix: Correct error information if an element is not found in moveCursor
1 parent b9b25b8 commit 566e8bc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tasks/instructions/utils/elements.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@ function checkError (result) {
22
if (result) {
33
const error = result.error
44
if (error) {
5-
const exception = new Error(result.message)
6-
exception.name = error
7-
exception.data = result.data
8-
exception.stacktrace = result.stacktrace
5+
const exception = new Error(error.message)
6+
exception.name = error.error
7+
exception.data = error.data
8+
exception.stacktrace = error.stacktrace
99
throw exception
1010
}
1111
}

0 commit comments

Comments
 (0)