From 1420584ae4c41d4f89743c512b00befe814b54bb Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Tue, 5 Nov 2019 17:03:50 +0100 Subject: rebuild ios --- .../platforms/ios/www/js/lib/auth/SignupView.js | 24 +++++++++++----------- 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js') diff --git a/StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js b/StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js index 66d8f239..b16ff887 100755 --- a/StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js +++ b/StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js @@ -114,19 +114,19 @@ var SignupView = FormView.extend({ }, error: function(data){ - try { - data = JSON.parse(data.responseText) - app.signup.show_errors([[ 'Name', data['Error']['Description'] ]]) - } - catch (e) { - switch (data.status) { - case 409: - app.signup.show_errors([[ 'Email', "Email is already in use." ]]) - break - default: + switch (data.status) { + case 409: + app.signup.show_errors([[ 'Email', "Email is already in use." ]]) + break + default: + try { + data = JSON.parse(data.responseText) + app.signup.show_errors([[ 'Name', data['Error']['Description'] ]]) + } + catch (e) { app.signup.show_errors([[ 'Name', "There was an unknown error." ]]) - break - } + } + break } }, -- cgit v1.2.3-70-g09d2