From 0f38764709a0039eeffee75dba5e8f3522df98a3 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 15 Mar 2016 16:17:41 +0000 Subject: [PATCH] No point throwing the exception if we return the original promise --- lib/http-api.js | 1 - 1 file changed, 1 deletion(-) diff --git a/lib/http-api.js b/lib/http-api.js index 675749250..2ced9bb79 100644 --- a/lib/http-api.js +++ b/lib/http-api.js @@ -278,7 +278,6 @@ module.exports.MatrixHttpApi.prototype = { if (err.errcode == 'M_UNKNOWN_TOKEN') { self.event_emitter.emit("Session.logged_out"); } - throw err; }); // return the original promise, otherwise tests break due to it having to // go around the event loop one more time to process the result of the request