From e113c56cae95951681094bae5ca79c3823711293 Mon Sep 17 00:00:00 2001 From: Alexandre Aubin Date: Sat, 4 Aug 2018 15:15:32 +0200 Subject: [PATCH] (Put the log after the flash in case the console.log fails for some reason) --- src/js/yunohost/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/yunohost/helpers.js b/src/js/yunohost/helpers.js index d5871d74..2d6bf859 100644 --- a/src/js/yunohost/helpers.js +++ b/src/js/yunohost/helpers.js @@ -137,8 +137,8 @@ // 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])); + console.log(xhr); } // Remove loader if any