[Router] leaveDoc: pass the doc_id into the error-context

This commit is contained in:
Jakob Ackermann
2020-08-21 12:47:42 +01:00
parent fd88819eec
commit f935b1881a
+3 -1
View File
@@ -274,7 +274,9 @@ module.exports = Router = {
WebsocketController.leaveDoc(client, doc_id, function (err, ...args) {
if (err) {
Router._handleError(callback, err, client, 'leaveDoc')
Router._handleError(callback, err, client, 'leaveDoc', {
doc_id
})
} else {
callback(null, ...args)
}