Skip to content

Commit

Permalink
storage: Write more error messages to the Browser console
Browse files Browse the repository at this point in the history
The dialogs do this already, so let the buttons and menu items do it
as well.  This helps with naughty patterns.
  • Loading branch information
mvollmer committed Aug 25, 2023
1 parent 23494d1 commit fda8c7c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/storaged/storage-controls.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit fda8c7c

Please sign in to comment.