Add human readable version of errors

This commit is contained in:
Matt Corallo 2014-05-27 21:29:44 +02:00
parent 753a950816
commit 68131a6e2a
5 changed files with 55 additions and 42 deletions

View file

@ -100,7 +100,11 @@ $('#init-go').click(function() {
registrationDone();
}
}).catch(function(error) {
alert(error.human_error);
//TODO: No alerts...
if (error.humanError)
alert(error.humanError);
else
alert(error); //XXX
});
});