Fix SYWEB-109 : No error if HS rejects the username in registration.

Display all error messages from the server when registering, rather
than just the types of errors the client recognises.
This commit is contained in:
Kegan Dougal 2014-10-27 11:58:23 +00:00
parent f3bb3943c9
commit 6603e39e6a
1 changed files with 3 additions and 0 deletions

View File

@ -140,6 +140,9 @@ angular.module('RegisterController', ['matrixService'])
$scope.feedback = "Captcha is required on this home " +
"server.";
}
else if (error.data.error) {
$scope.feedback = error.data.error;
}
}
else if (error.status === 0) {
$scope.feedback = "Unable to talk to the server.";