Commit 393ea57cbc24f9a0781f16154cbc58ec780c8133

Authored by Caio Almeida
1 parent ffa9b4b2

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 153 msg += 'Campo "' + field + '" ' + errors[field][0] + '. ';
154 154 }
155 155 } catch(e) {
156   - // Do nothing
  156 + msg = err.data.message;
157 157 }
158 158 $ionicPopup.alert({ title: 'Registrar', template: 'Erro ao registrar usuário. ' + msg });
159 159 $scope.loading = false;
... ...