Print a useful error message.

This commit is contained in:
joshaber 2016-07-27 09:42:26 -04:00
parent 21a17fa2a2
commit 6e59700333

View file

@ -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)
})