Skip to content

Commit

Permalink
Show VM start failure as console message
Browse files Browse the repository at this point in the history
We want to write a precise naughty for some startup failures like
cockpit-project/bots#6792 . For that we need
the message on the console, not just on the UI.

It also makes human debugging easier.
  • Loading branch information
martinpitt authored and jelly committed Nov 5, 2024
1 parent 61fe894 commit 998da2a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/vm/vmActions.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ const _ = cockpit.gettext;

const onStart = (vm, setOperationInProgress) => domainStart({ name: vm.name, id: vm.id, connectionName: vm.connectionName }).catch(ex => {
setOperationInProgress(false);
console.warn("Failed to start VM", vm.name, ":", cockpit.message(ex));
store.dispatch(
updateVm({
connectionName: vm.connectionName,
Expand Down

0 comments on commit 998da2a

Please sign in to comment.