Skip to content

Commit

Permalink
fix(server): switch to sync write
Browse files Browse the repository at this point in the history
The async write operation has no callback and errors are not
detected that way. Switch to the sync version to circumvent that
problem.
  • Loading branch information
BridgeAR authored and dignifiedquire committed Feb 26, 2018
1 parent a8c8530 commit 6ec74ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ Server.prototype._start = function (config, launcher, preprocess, fileList,
return logMap[m]
})
self.log.debug('Writing browser console line: %s', logString)
fs.write(browserLogFile, logString + '\n')
fs.writeSync(browserLogFile, logString + '\n')
})
}

Expand Down

0 comments on commit 6ec74ee

Please sign in to comment.