Merge pull request #113 from sourishkrout/master

Added more info to exception.
This commit is contained in:
Adam Christian
2013-02-04 21:40:47 -08:00
+1 -1
View File
@@ -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) {