mirror of
https://github.com/appium/appium.git
synced 2026-10-29 04:36:39 +08:00
Merge pull request #113 from sourishkrout/master
Added more info to exception.
This commit is contained in:
@@ -7,7 +7,7 @@ var waitForDataTimeout = defWaitForDataTimeout;
|
||||
var sysExec = function(cmd) {
|
||||
var res = system.performTaskWithPathArgumentsTimeout('/bin/bash', ['-c', cmd], 3);
|
||||
if (res.exitCode !== 0) {
|
||||
throw new Error("Failed trying to get path " + cmd);
|
||||
throw new Error("Failed executing the command " + cmd + " (exit code " + res.exitCode + ")");
|
||||
} else {
|
||||
var path = res.stdout.trim();
|
||||
if (path.length) {
|
||||
|
||||
Reference in New Issue
Block a user