From 63b0d607d48ce79b3cd8ee7abd29fb531a2b64b7 Mon Sep 17 00:00:00 2001 From: Sebastian Tiedtke Date: Mon, 4 Feb 2013 21:34:08 -0800 Subject: [PATCH] Added more info to exception. --- app/uiauto/lib/instruments_client.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/uiauto/lib/instruments_client.js b/app/uiauto/lib/instruments_client.js index 02a2054db..f999045c1 100644 --- a/app/uiauto/lib/instruments_client.js +++ b/app/uiauto/lib/instruments_client.js @@ -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) {