Return callback with guard

This commit is contained in:
Alasdair Smith 2017-09-22 09:25:24 +01:00
parent 5d8e201732
commit 937bf82a2f

View file

@ -100,7 +100,7 @@ module.exports = Router =
# Called with 4 args, things are as expected
else
logger.error { arguments: arguments }, "unexpected arguments"
return # ????
return callback?(new Error("unexpected arguments"))
WebsocketController.joinDoc client, doc_id, fromVersion, options, (err, args...) ->
if err?