mirror of
https://github.com/desktop/desktop
synced 2024-11-05 20:49:32 +00:00
Print a useful error message.
This commit is contained in:
parent
21a17fa2a2
commit
6e59700333
1 changed files with 5 additions and 0 deletions
|
@ -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)
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue