Skip to content

Commit

Permalink
dev: Fix error creation
Browse files Browse the repository at this point in the history
  • Loading branch information
adriansmares committed Apr 2, 2024
1 parent 23977c7 commit ab80967
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/commands/source.go
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ func SourcePersistentPreRunE() CobraRunE {
return func(cmd *cobra.Command, args []string) error {
s := cmd.Name()
if ok := source.RootConfig.SetSource(s); !ok {
return source.ErrNotRegistered.WithAttributes("source", s).New()
return source.ErrNotRegistered.WithAttributes("source", s)
}
return ExecuteParentPersistentPreRun(cmd, args)
}
Expand Down

0 comments on commit ab80967

Please sign in to comment.