From 93f6974c561517dfaf2d33f3e9bb32dd9a0253d5 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 ce6b565d49d..abe793878a4 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()