Skip to content

Commit

Permalink
Improve error handling on generators
Browse files Browse the repository at this point in the history
  • Loading branch information
luisboitas committed Oct 5, 2022
1 parent 61023b2 commit 332f84f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/web/store/customCommands.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,8 +137,8 @@ export const actions = {
if (definition) {
newGenerators[key].definition = definition
}
} catch (err) {
console.error(err)
} catch (error) {
console.error(`Error defining ${key}`, { generator, error });
}

}
Expand Down

0 comments on commit 332f84f

Please sign in to comment.