Throw error instead of continuing when #api fails

This commit is contained in:
Andrew Stewart 2015-04-02 14:10:22 -07:00
parent 2de8f9a44d
commit 4791fa72a9
1 changed files with 2 additions and 2 deletions

View File

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