From fda8c7cb3cf56b3999e40c298f0d4608dabed281 Mon Sep 17 00:00:00 2001 From: Marius Vollmer Date: Wed, 23 Aug 2023 15:24:36 +0300 Subject: [PATCH] storage: Write more error messages to the Browser console The dialogs do this already, so let the buttons and menu items do it as well. This helps with naughty patterns. --- pkg/storaged/storage-controls.jsx | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/storaged/storage-controls.jsx b/pkg/storaged/storage-controls.jsx index ce6b565d49d9..abe793878a43 100644 --- a/pkg/storaged/storage-controls.jsx +++ b/pkg/storaged/storage-controls.jsx @@ -90,6 +90,7 @@ function checked(callback, setSpinning) { setSpinning(false); }); promise.catch(function (error) { + console.warn(error.toString()); dialog_open({ Title: _("Error"), Body: error.toString()