Skip to content

Commit

Permalink
Print error in console in case first attempt to use libvirt's dbus AP…
Browse files Browse the repository at this point in the history
…I failed

This could help debug issues like cockpit-project#578
  • Loading branch information
KKoukiou committed Feb 24, 2022
1 parent 5eb095c commit 267639d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/app.jsx
Expand Up @@ -87,7 +87,8 @@ export const App = () => {
});
setError(errorMsgs.join(', '));
});
}, () => {
}, ex => {
console.error("Failed to get libvirt version from the dbus API:" + ex.message);
/* If the API call failed on system connection and the user has superuser privileges then show the Empty state screen */
if (conn == "system")
setSystemSocketInactive(true);
Expand Down

0 comments on commit 267639d

Please sign in to comment.