From 393ea57cbc24f9a0781f16154cbc58ec780c8133 Mon Sep 17 00:00:00 2001 From: Caio SBA Date: Wed, 24 Jun 2015 04:07:26 -0300 Subject: [PATCH] Item 24 from Google Docs: Show registration errors --- ConfJuvApp/www/js/controllers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ConfJuvApp/www/js/controllers.js b/ConfJuvApp/www/js/controllers.js index 0bc2326..753fa58 100644 --- a/ConfJuvApp/www/js/controllers.js +++ b/ConfJuvApp/www/js/controllers.js @@ -153,7 +153,7 @@ angular.module('confjuvapp.controllers', []) msg += 'Campo "' + field + '" ' + errors[field][0] + '. '; } } catch(e) { - // Do nothing + msg = err.data.message; } $ionicPopup.alert({ title: 'Registrar', template: 'Erro ao registrar usuário. ' + msg }); $scope.loading = false; -- libgit2 0.21.2