From d3cacd0e5889ea92b413da97af0c96546c4d653f Mon Sep 17 00:00:00 2001 From: Sebastien Chopin Date: Mon, 3 Jul 2017 13:53:37 +0200 Subject: [PATCH] Add back error handler on nuxt-dev --- bin/nuxt-dev | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bin/nuxt-dev b/bin/nuxt-dev index 419fe79a44..19e4b9de9f 100755 --- a/bin/nuxt-dev +++ b/bin/nuxt-dev @@ -54,6 +54,11 @@ const nuxtConfigFile = resolve(rootDir, argv['config-file']) const nuxtConfig = loadNuxtConfig() _.defaultsDeep(nuxtConfig, { watchers: { chokidar: { ignoreInitial: true } } }) +// Fail if an error happened +process.on('unhandledRejection', function (err) { + throw err +}) + // Start dev let dev = startDev()