diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-03-25 16:35:57 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2016-03-30 13:09:29 +0200 |
commit | 5b03ea193c1927305fc99b93307b6c74bde0d84d (patch) | |
tree | 2a4e991e7ed7913d535e9b42c5daf6c91c9a68fa /js/codeq/signup.js | |
parent | ba9d5eb671997a3a7b82eeb3eb04c0a3e5c3a966 (diff) |
Clean up a few error functions
Diffstat (limited to 'js/codeq/signup.js')
-rw-r--r-- | js/codeq/signup.js | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/js/codeq/signup.js b/js/codeq/signup.js index 7f28e9f..a0ac4de 100644 --- a/js/codeq/signup.js +++ b/js/codeq/signup.js @@ -77,9 +77,10 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. */ throw new Error(data.message); } }) - .fail(function (reason) { - codeq.log.error('Signup failed: ' + reason, reason); - alert('Signup failed: ' + reason); + .fail(function (error) { + var message = 'Signup failed: ' + error.message; + codeq.log.error(message, error); + alert(message); }) .done(); } |