Skip to content

Commit 7a79429

Browse files
committed
[js] update ways error messages are handled for selenium manager
1 parent c23b95b commit 7a79429

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

javascript/node/selenium-webdriver/common/seleniumManager.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,12 +76,12 @@ function driverLocation(browser) {
7676
result = execSync(args.join(' ')).toString()
7777
} catch (e) {
7878
throw new Error(
79-
`Error executing command with ${args} : Error ${e.stderr.toString()}`
79+
`Error executing command with ${args}\n${e.stdout.toString()}${e.stderr.toString()}`
8080
)
8181
}
8282

8383
if (!result.startsWith('INFO\t')) {
84-
throw new Error(`Unsuccessful command executed ${args}}`)
84+
throw new Error(`Unsuccessful command executed: ${args}\n${result}`)
8585
}
8686

8787
return result.replace('INFO\t', '').trim()

0 commit comments

Comments
 (0)