Skip to content

Commit

Permalink
Correctly handle error when prompting for template path (#75)
Browse files Browse the repository at this point in the history
Saves us from a linting error, and handling errors is good.
  • Loading branch information
macebake authored Feb 29, 2024
2 parents 41d9f01 + 884bb8b commit e04143e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/catalog-importer/cmd/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (opt *InitOptions) Run(ctx context.Context, logger kitlog.Logger) error {
Default: ".",
}

chosenDest, _ = prompt.Run()
chosenDest, err = prompt.Run()
if err != nil {
return err
}
Expand Down

0 comments on commit e04143e

Please sign in to comment.