mirror of
https://github.com/overleaf/overleaf.git
synced 2025-03-04 17:04:02 +00:00
Merge pull request #79 from sharelatex/bg-fix-listen-in-acceptance-tests
exit if mock server fails to start
This commit is contained in:
commit
18a76f6bcb
1 changed files with 4 additions and 1 deletions
|
@ -30,7 +30,10 @@ module.exports = Client =
|
|||
express = require("express")
|
||||
app = express()
|
||||
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) ->) ->
|
||||
request.get {
|
||||
|
|
Loading…
Reference in a new issue