Skip to content

Commit

Permalink
fix(archive): tweak the invalid pro value error msg
Browse files Browse the repository at this point in the history
  • Loading branch information
rebornplusplus committed Oct 17, 2024
1 parent 2608ee3 commit 15d0805
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/archive/archive.go
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ func openUbuntu(options *Options) (Archive, error) {
}
if options.Pro != "" {
if _, ok := proArchiveInfo[options.Pro]; !ok {
return nil, fmt.Errorf("invalid pro value: %q", options.Pro)
return nil, fmt.Errorf("archive options has invalid pro value: %q", options.Pro)
}
}

Expand Down
2 changes: 1 addition & 1 deletion internal/archive/archive_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ var optionErrorTests = []optionErrorTest{{
Components: []string{"main", "other"},
Pro: "invalid",
},
error: `invalid pro value: "invalid"`,
error: `archive options has invalid pro value: "invalid"`,
}}

func (s *httpSuite) TestOptionErrors(c *C) {
Expand Down

0 comments on commit 15d0805

Please sign in to comment.