mirror of
https://github.com/desktop/desktop
synced 2024-09-17 23:21:55 +00:00
Print a useful error message.
This commit is contained in:
parent
21a17fa2a2
commit
6e59700333
|
@ -28,6 +28,11 @@ server.listen(port, 'localhost', err => {
|
||||||
console.log(`Server running at http://localhost:${port}`)
|
console.log(`Server running at http://localhost:${port}`)
|
||||||
|
|
||||||
const runningApp = run()
|
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', () => {
|
runningApp.on('close', () => {
|
||||||
process.exit(0)
|
process.exit(0)
|
||||||
})
|
})
|
||||||
|
|
Loading…
Reference in a new issue