summary refs log tree commit diff
path: root/webclient/home/home-controller.js
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2014-09-03 18:38:55 +0100
committerMatthew Hodgson <matthew@matrix.org>2014-09-03 18:39:09 +0100
commit7f01d1d8c8a41e79814741e07e618638120712d8 (patch)
tree08908e30d75c7588d587aaae721595fa6d58f91a /webclient/home/home-controller.js
parentIgnore leave members in the list too (diff)
downloadsynapse-7f01d1d8c8a41e79814741e07e618638120712d8.tar.xz
better error msgs
Diffstat (limited to '')
-rw-r--r--webclient/home/home-controller.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/webclient/home/home-controller.js b/webclient/home/home-controller.js
index 11b3682d34..85e8990c29 100644
--- a/webclient/home/home-controller.js
+++ b/webclient/home/home-controller.js
@@ -74,7 +74,7 @@ angular.module('HomeController', ['matrixService', 'eventHandlerService', 'Recen
                     response.data.room_id, response.data.room_alias);
             },
             function(error) {
-                $scope.feedback = "Failure: " + error.data;
+                $scope.feedback = "Failure: " + JSON.stringify(error.data);
             });
     };
     
@@ -94,7 +94,7 @@ angular.module('HomeController', ['matrixService', 'eventHandlerService', 'Recen
                 $location.url("room/" + room_id);
             },
             function(error) {
-                $scope.feedback = "Can't join room: " + error.data;
+                $scope.feedback = "Can't join room: " + JSON.stringify(error.data);
             }
         );
     };
@@ -106,7 +106,7 @@ angular.module('HomeController', ['matrixService', 'eventHandlerService', 'Recen
                 $location.url("room/" + room_alias);
             },
             function(error) {
-                $scope.feedback = "Can't join room: " + error.data;
+                $scope.feedback = "Can't join room: " + JSON.stringify(error.data);
             }
         );
     };