Skip to content

Commit

Permalink
Fix missed return in export cmd.go
Browse files Browse the repository at this point in the history
  • Loading branch information
amisevsk committed Feb 21, 2024
1 parent fc00a26 commit e7d7a65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pkg/cmd/export/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ func (opts *ExportOptions) complete(args []string) error {
opts.storageHome = storage.StorageHome(opts.configHome)
modelRef, extraTags, err := storage.ParseReference(args[0])
if err != nil {
return fmt.Errorf("failed to parse reference %s: %w", modelRef, err)
return fmt.Errorf("failed to parse reference %s: %w", args[0], err)
}
if len(extraTags) > 0 {
return fmt.Errorf("can not export multiple tags")
Expand Down Expand Up @@ -113,6 +113,7 @@ func runCommand(opts *ExportOptions) func(*cobra.Command, []string) {
return func(cmd *cobra.Command, args []string) {
if err := opts.complete(args); err != nil {
fmt.Printf("Failed to process arguments: %s", err)
return
}
err := opts.validate()
if err != nil {
Expand Down

0 comments on commit e7d7a65

Please sign in to comment.