mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
(API) right error message
This commit is contained in:
parent
86619b6b0e
commit
6dbee3d1b9
@ -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();
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user