Skip to content

Commit

Permalink
Fixes issue where execution continues even if there's an unexpected e…
Browse files Browse the repository at this point in the history
…rror in parsing config. Closes #3286
  • Loading branch information
binaek committed Apr 3, 2023
1 parent 7a79e93 commit 902ba89
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -58,12 +58,6 @@ var rootCmd = &cobra.Command{
utils.LogTime("cmd.root.PersistentPreRun start")
defer utils.LogTime("cmd.root.PersistentPreRun end")

defer func() {
if r := recover(); r != nil {
error_helpers.ShowError(cmd.Context(), helpers.ToError(r))
}
}()

handleArgDeprecations()

viper.Set(constants.ConfigKeyActiveCommand, cmd)
Expand Down

0 comments on commit 902ba89

Please sign in to comment.