Explorar el Código

Return callback with guard

Alasdair Smith hace 9 años
padre
commit
937bf82a2f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      services/real-time/app/coffee/Router.coffee

+ 1 - 1
services/real-time/app/coffee/Router.coffee

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