Add human readable version of errors
This commit is contained in:
parent
753a950816
commit
68131a6e2a
5 changed files with 55 additions and 42 deletions
|
@ -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
|
||||
});
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue