Skip to content

Commit

Permalink
fix: add catch to executeCommand
Browse files Browse the repository at this point in the history
Signed-off-by: lstocchi <lstocchi@redhat.com>
  • Loading branch information
lstocchi committed Aug 2, 2023
1 parent 8581cef commit d3670ee
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/renderer/src/lib/onboarding/OnboardingItem.svelte
Expand Up @@ -23,7 +23,9 @@ onMount(() => {
const buttonId = e.target.id;
let command = buttons.get(buttonId);
if (command) {
executeCommand(command);
executeCommand(command).catch((error: unknown) => {
console.error(`error while executing command ${command}`, error);
});
}
}
};
Expand Down

0 comments on commit d3670ee

Please sign in to comment.