From 27b4673ca04e62b73b51525e64dbd0c586d02c95 Mon Sep 17 00:00:00 2001 From: Mark Perkins Date: Tue, 12 Mar 2019 14:16:52 +0100 Subject: [PATCH] Correctly catch and log errors in config files --- packages/fractalite/bin/fractalite | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/fractalite/bin/fractalite b/packages/fractalite/bin/fractalite index c6a1b76..d2d0f18 100755 --- a/packages/fractalite/bin/fractalite +++ b/packages/fractalite/bin/fractalite @@ -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); } }