diff --git a/internal/archive/archive.go b/internal/archive/archive.go index 87a8abdd..8deb9d71 100644 --- a/internal/archive/archive.go +++ b/internal/archive/archive.go @@ -196,7 +196,7 @@ func openUbuntu(options *Options) (Archive, error) { } if options.Pro != "" { if _, ok := proArchiveInfo[options.Pro]; !ok { - return nil, fmt.Errorf("archive options has invalid pro value: %q", options.Pro) + return nil, fmt.Errorf("invalid pro value: %q", options.Pro) } } diff --git a/internal/archive/archive_test.go b/internal/archive/archive_test.go index 482f07f6..ea05a5f2 100644 --- a/internal/archive/archive_test.go +++ b/internal/archive/archive_test.go @@ -190,7 +190,7 @@ var optionErrorTests = []optionErrorTest{{ Components: []string{"main", "other"}, Pro: "invalid", }, - error: `archive options has invalid pro value: "invalid"`, + error: `invalid pro value: "invalid"`, }} func (s *httpSuite) TestOptionErrors(c *C) {