exit if mock server fails to start

This commit is contained in:
Brian Gough
2017-10-20 15:16:35 +01:00
parent 23f4f2175c
commit 360e8220ce

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 {