From 6dbee3d1b99da8a87c5e30cd5a0ae2eb8639bb34 Mon Sep 17 00:00:00 2001 From: Unitech Date: Fri, 23 Jun 2017 17:56:03 +0200 Subject: [PATCH] (API) right error message --- lib/API.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/API.js b/lib/API.js index 50c25b3d..f128a915 100644 --- a/lib/API.js +++ b/lib/API.js @@ -1036,11 +1036,11 @@ API.prototype._startJson = function(file, opts, action, pipe, cb) { that.Client.executeRemote('prepare', resolved_paths, function(err, data) { if (err) { - Common.printError(conf.PREFIX_MSG + 'Process failed to launch', err); + Common.printError(conf.PREFIX_MSG_ERR + 'Process failed to launch %s', err.message ? err.message : err); return next(); } if (data.length === 0) { - Common.printError(conf.PREFIX_MSG + 'Process config loading failed', data); + Common.printError(conf.PREFIX_MSG_ERR + 'Process config loading failed', data); return next(); }