Throw error instead of continuing when #api fails
This commit is contained in:
parent
2de8f9a44d
commit
4791fa72a9
|
@ -103,8 +103,8 @@ Cylon.api = function api(Server, opts) {
|
|||
];
|
||||
}
|
||||
|
||||
_.each(messages, _.arity(Logger.error, 1));
|
||||
return;
|
||||
_.each(messages, _.arity(Logger.fatal, 1));
|
||||
throw new Error("Missing API plugin - cannot proceed");
|
||||
} else {
|
||||
throw e;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue