Skip to content

Commit

Permalink
storage: use console.warn not console.warning to fix crash
Browse files Browse the repository at this point in the history
f66f8f4 mistakenly tried to log a warning with `console.warning`,
which doesn't exist. It's `console.warn`. This means we still
crash on the path where we crashed before, now with an error
about `console.warning` being undefined.

Signed-off-by: Adam Williamson <awilliam@redhat.com>
  • Loading branch information
AdamWill committed Sep 9, 2024
1 parent bcf4fdf commit 3962047
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/actions/storage-actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export const getDevicesAction = () => {
partName: partName.trim(),
};
} catch (e) {
console.warning("Failed to get partition label", e);
console.warn("Failed to get partition label", e);
devData.misc = {
fsLabel: "",
partName: "",
Expand Down

0 comments on commit 3962047

Please sign in to comment.