mirror of
https://github.com/YunoHost/yunohost-admin.git
synced 2024-09-03 20:06:15 +02:00
Log 'xhr' variable in console when an unexpected error occur
This commit is contained in:
parent
6292abaa03
commit
7db903e7c8
1 changed files with 1 additions and 0 deletions
|
@ -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]));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue