Commit 393ea57cbc24f9a0781f16154cbc58ec780c8133
1 parent
ffa9b4b2
Exists in
master
and in
2 other branches
Item 24 from Google Docs: Show registration errors
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
ConfJuvApp/www/js/controllers.js
@@ -153,7 +153,7 @@ angular.module('confjuvapp.controllers', []) | @@ -153,7 +153,7 @@ angular.module('confjuvapp.controllers', []) | ||
153 | msg += 'Campo "' + field + '" ' + errors[field][0] + '. '; | 153 | msg += 'Campo "' + field + '" ' + errors[field][0] + '. '; |
154 | } | 154 | } |
155 | } catch(e) { | 155 | } catch(e) { |
156 | - // Do nothing | 156 | + msg = err.data.message; |
157 | } | 157 | } |
158 | $ionicPopup.alert({ title: 'Registrar', template: 'Erro ao registrar usuário. ' + msg }); | 158 | $ionicPopup.alert({ title: 'Registrar', template: 'Erro ao registrar usuário. ' + msg }); |
159 | $scope.loading = false; | 159 | $scope.loading = false; |