Skip to content

Commit

Permalink
fix: display different error message depending on the type (#506)
Browse files Browse the repository at this point in the history
* fix: display different error message depending on the type

* chore: update package-lock

* chore: update package-lock with chromedriver

* fix: increase script timeout

---------

Co-authored-by: Volker Buzek <[email protected]>
  • Loading branch information
Siolto and vobu authored Aug 22, 2023
1 parent b7c72ad commit 0f8e356
Show file tree
Hide file tree
Showing 3 changed files with 4,083 additions and 4,221 deletions.
5 changes: 4 additions & 1 deletion client-side-js/testLibrary.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ async function emptyQueue(browserInstance) {
window.wdi5.Log.error(err)
done({
type: "error",
message: `The execution of the test library probably took to long. Try to increase the UI5 Timeout or reduce the individual steps. ${err.message}`
message:
err instanceof Error
? `The execution of the test library probably took to long. Try to increase the UI5 Timeout or reduce the individual steps. ${err.message}`
: err.errorMessage
})
})
})
Expand Down
Loading

0 comments on commit 0f8e356

Please sign in to comment.