diff --git a/lib/compile.js b/lib/compile.js index b06dab7d1f..be0bd7bba6 100644 --- a/lib/compile.js +++ b/lib/compile.js @@ -110,7 +110,9 @@ function webpackConcurrentCompile(configs, logStats, concurrency, ServerlessErro { concurrency } ).then(stats => { if (errors.length) { - if (errors.length === 1) throw errors[0]; + if (errors.length === 1) { + throw errors[0]; + } throw new ServerlessError('Webpack compilation errors, see stats above'); } return _.flatten(stats);