Log 'xhr' variable in console when an unexpected error occur

This commit is contained in:
Alexandre Aubin 2018-08-04 15:11:15 +02:00 committed by GitHub
parent 6292abaa03
commit 7db903e7c8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -137,6 +137,7 @@
// Return HTTP error code at least
else {
var errorMessage = xhr.status+' '+xhr.statusText;
console.log(xhr);
c.flash('fail', y18n.t('error_server_unexpected', [errorMessage]));
}