From 7db903e7c8c70f8a99da85d3a67173384c16c871 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 4 Aug 2018 15:11:15 +0200 Subject: [PATCH] Log 'xhr' variable in console when an unexpected error occur --- src/js/yunohost/helpers.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/js/yunohost/helpers.js b/src/js/yunohost/helpers.js index d057de21..d5871d74 100644 --- a/src/js/yunohost/helpers.js +++ b/src/js/yunohost/helpers.js @@ -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])); }