better error message

This commit is contained in:
Girish Ramakrishnan
2016-05-10 09:50:57 -07:00
parent 36eb107b83
commit f36641b443

View File

@@ -35,7 +35,7 @@ function exec(tag, file, args, callback) {
cp.on('exit', function (code, signal) {
if (code || signal) debug(tag + ' code: %s, signal: %s', code, signal);
callback(code === 0 ? null : new Error(util.format('Exited with error %s signal %s', code, signal)));
callback(code === 0 ? null : new Error(util.format(tag + ' exited with error %s signal %s', code, signal)));
});
cp.on('error', function (error) {