Skip to content

Commit

Permalink
Correctly catch and log errors in config files
Browse files Browse the repository at this point in the history
  • Loading branch information
allmarkedup committed Mar 12, 2019
1 parent abfd4db commit 27b4673
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/fractalite/bin/fractalite
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@ const args = mri(process.argv.slice(2));
loaded = { config: {} };
logger.warn(`Config file not found. Continuing without config.`);
} else {
throw err;
logger.error(err);
process.exit(1);
}
}

Expand Down

0 comments on commit 27b4673

Please sign in to comment.