better error msgs

This commit is contained in:
Matthew Hodgson 2014-09-03 18:38:55 +01:00
parent 069a9745b0
commit 7f01d1d8c8

View File

@ -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);
}
);
};