Commit 31849b3a authored by Sean Hammond's avatar Sean Hammond

Use reason instead of responseErrorMessage

When catching a non-JSON error response from the server, when trying to
register a user.
parent d7750027
......@@ -21,9 +21,8 @@ class AuthController
try
{errors, reason} = response.data
catch
form.responseErrorMessage = "Oops, something went wrong on the server.
Please try again later!"
return
reason = "Oops, something went wrong on the server. Please try again
later!"
formHelpers.applyValidationErrors(form, errors, reason)
this.submit = (form) ->
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment