From 53b753789a925c2e6f875bd3f5081bd680c04c66 Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 9 Apr 2020 16:04:14 +0100 Subject: [PATCH] Fix logging for failed searches error is an object so appending it to a string is not helpful --- src/components/structures/RoomView.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/structures/RoomView.js b/src/components/structures/RoomView.js index 4a3666fc38..7d4cc6faa2 100644 --- a/src/components/structures/RoomView.js +++ b/src/components/structures/RoomView.js @@ -1203,7 +1203,7 @@ export default createReactClass({ }); }, function(error) { const ErrorDialog = sdk.getComponent("dialogs.ErrorDialog"); - console.error("Search failed: " + error); + console.error("Search failed", error); Modal.createTrackedDialog('Search failed', '', ErrorDialog, { title: _t("Search failed"), description: ((error && error.message) ? error.message : _t("Server may be unavailable, overloaded, or search timed out :(")),