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));
|
_.each(messages, _.arity(Logger.fatal, 1));
|
||||||
return;
|
throw new Error("Missing API plugin - cannot proceed");
|
||||||
} else {
|
} else {
|
||||||
throw e;
|
throw e;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue