fix: Exit if zero managers were loaded (#5387)

This commit is contained in:
Sergio Zharinov 2020-02-06 12:50:36 +04:00 committed by GitHub
parent 9c7f1e4204
commit f6bc800be5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,7 +44,8 @@ function loadManagers(): void {
try { try {
module = require(`./${manager}`); // eslint-disable-line module = require(`./${manager}`); // eslint-disable-line
} catch (e) /* istanbul ignore next */ { } catch (e) /* istanbul ignore next */ {
logger.error(`Can not load manager "${manager}", skipping directory.`); logger.fatal(`Can not load manager "${manager}".`);
process.exit(1);
} }
if (isValidManagerModule(module)) { if (isValidManagerModule(module)) {