diff --git a/lib/generate.js b/lib/generate.js index 0a42f4c4bc..ff41d7bfe1 100644 --- a/lib/generate.js +++ b/lib/generate.js @@ -57,6 +57,7 @@ export default function () { console.error('Could not resolve routes') // eslint-disable-line no-console console.error(e) // eslint-disable-line no-console process.exit(1) + throw e // eslint-disable-line no-unreachable }) }) .then((generateRoutes) => {