Skip to content

Commit

Permalink
bin/ungit: report server errors
Browse files Browse the repository at this point in the history
  • Loading branch information
wmertens committed Apr 27, 2020
1 parent d02b74c commit e5f1599
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions bin/ungit
Original file line number Diff line number Diff line change
Expand Up @@ -85,5 +85,8 @@ server.on('error', (e) => {
if (e.code == 'EADDRINUSE') {
console.log('Ungit server already running');
navigate();
} else {
console.error('Failed to run server: ', e)
process.exit(1)
}
});

0 comments on commit e5f1599

Please sign in to comment.