mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
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:
commit
c7a9fccc14
1 changed files with 1 additions and 0 deletions
|
@ -138,6 +138,7 @@
|
|||
else {
|
||||
var errorMessage = xhr.status+' '+xhr.statusText;
|
||||
c.flash('fail', y18n.t('error_server_unexpected', [errorMessage]));
|
||||
console.log(xhr);
|
||||
}
|
||||
|
||||
// Remove loader if any
|
||||
|
|
Loading…
Reference in a new issue