(API) right error message

This commit is contained in:
Unitech 2017-06-23 17:56:03 +02:00
parent 86619b6b0e
commit 6dbee3d1b9

View File

@ -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();
}