summaryrefslogtreecommitdiff
path: root/StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-11-05 17:03:50 +0100
committerJules Laplace <julescarbon@gmail.com>2019-11-05 17:03:50 +0100
commit1420584ae4c41d4f89743c512b00befe814b54bb (patch)
tree6f572ddc65acb1ba9beb2ba13646973ab398b6a3 /StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js
parent0e89aa5c0b5bf97530a8e1e92153567b1fb7efa9 (diff)
rebuild ios
Diffstat (limited to 'StoneIsland/platforms/ios/www/js/lib/auth/SignupView.js')
-rwxr-xr-xStoneIsland/platforms/ios/www/js/lib/auth/SignupView.js24
1 files changed, 12 insertions, 12 deletions
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
}
},