mirror of
https://github.com/overleaf/overleaf.git
synced 2025-01-25 00:21:30 +00:00
exit if mock servers fail to start
This commit is contained in:
parent
5bf2cb6374
commit
448f131011
2 changed files with 6 additions and 0 deletions
|
@ -15,6 +15,9 @@ module.exports = MockTrackChangesApi =
|
|||
|
||||
app.listen 3015, (error) ->
|
||||
throw error if error?
|
||||
.on "error", (error) ->
|
||||
console.error "error starting MockTrackChangesApi:", error.message
|
||||
process.exit(1)
|
||||
|
||||
MockTrackChangesApi.run()
|
||||
|
||||
|
|
|
@ -40,6 +40,9 @@ module.exports = MockWebApi =
|
|||
|
||||
app.listen 3000, (error) ->
|
||||
throw error if error?
|
||||
.on "error", (error) ->
|
||||
console.error "error starting MockWebApi:", error.message
|
||||
process.exit(1)
|
||||
|
||||
MockWebApi.run()
|
||||
|
||||
|
|
Loading…
Reference in a new issue