Skip to content
Snippets Groups Projects
Unverified Commit f6bc800b authored by Sergio Zharinov's avatar Sergio Zharinov Committed by GitHub
Browse files

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

parent 9c7f1e42
No related branches found
No related tags found
No related merge requests found
...@@ -44,7 +44,8 @@ function loadManagers(): void { ...@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment