exit if mock server fails to start

This commit is contained in:
Brian Gough 2017-10-20 15:16:35 +01:00
parent 45adf904b7
commit f1c59150b7

View file

@ -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 {