From 6e59700333a3439c90e9c0fdde8dcde172548b9e Mon Sep 17 00:00:00 2001 From: joshaber Date: Wed, 27 Jul 2016 09:42:26 -0400 Subject: [PATCH] Print a useful error message. --- script/start | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/script/start b/script/start index 585fdec4bd..8363c9a089 100644 --- a/script/start +++ b/script/start @@ -28,6 +28,11 @@ server.listen(port, 'localhost', err => { console.log(`Server running at http://localhost:${port}`) const runningApp = run() + if (!runningApp) { + console.error("Couldn't launch the app. You probably need to build it first. Run `npm run build:dev`.") + process.exit(1) + } + runningApp.on('close', () => { process.exit(0) })