mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
exit if mock server fails to start
This commit is contained in:
parent
45adf904b7
commit
f1c59150b7
1 changed files with 4 additions and 1 deletions
|
@ -30,7 +30,10 @@ module.exports = Client =
|
||||||
express = require("express")
|
express = require("express")
|
||||||
app = express()
|
app = express()
|
||||||
app.use express.static(directory)
|
app.use express.static(directory)
|
||||||
app.listen(port, host)
|
app.listen(port, host).on "error", (error) ->
|
||||||
|
console.error "error starting server:", error.message
|
||||||
|
process.exit(1)
|
||||||
|
|
||||||
|
|
||||||
syncFromCode: (project_id, file, line, column, callback = (error, pdfPositions) ->) ->
|
syncFromCode: (project_id, file, line, column, callback = (error, pdfPositions) ->) ->
|
||||||
request.get {
|
request.get {
|
||||||
|
|
Loading…
Reference in a new issue