Merge pull request #202 from YunoHost/debug-for-unexpected-error

Log 'xhr' variable in console when an unexpected error occur
This commit is contained in:
Bram 2018-08-05 16:12:28 +02:00 committed by GitHub
commit c7a9fccc14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -138,6 +138,7 @@
else { else {
var errorMessage = xhr.status+' '+xhr.statusText; var errorMessage = xhr.status+' '+xhr.statusText;
c.flash('fail', y18n.t('error_server_unexpected', [errorMessage])); c.flash('fail', y18n.t('error_server_unexpected', [errorMessage]));
console.log(xhr);
} }
// Remove loader if any // Remove loader if any