You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2022/04/20 21:34:56 UTC
[camel-k] 03/03: use fmt package
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k.git
commit ef29f63d0c83f97111e775b2d7c2f34cf9573d07
Author: Kuthumi Pepple <ku...@gmail.com>
AuthorDate: Mon Apr 18 17:33:56 2022 +0100
use fmt package
---
pkg/cmd/run.go | 2 +-
pkg/cmd/run_test.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/pkg/cmd/run.go b/pkg/cmd/run.go
index 8843c9b80..247d9e1a5 100644
--- a/pkg/cmd/run.go
+++ b/pkg/cmd/run.go
@@ -244,7 +244,7 @@ func (o *runCmdOptions) validate() error {
}
if o.OutputFormat != "" && o.Dev {
- return errors.New("option '-o' is not compatible with '--dev'")
+ return fmt.Errorf("cannot use --dev with -o/--output option")
}
for _, label := range o.Labels {
diff --git a/pkg/cmd/run_test.go b/pkg/cmd/run_test.go
index 0959c5a53..b865fb7ce 100644
--- a/pkg/cmd/run_test.go
+++ b/pkg/cmd/run_test.go
@@ -138,7 +138,7 @@ func TestRunDevModeOutputFlag(t *testing.T) {
assert.Equal(t, true, runCmdOptions.Dev)
assert.Equal(t, "yaml", runCmdOptions.OutputFormat)
assert.NotNil(t, err)
- assert.Equal(t, "option '-o' is not compatible with '--dev'",
+ assert.Equal(t, "cannot use --dev with -o/--output option",
err.Error())
}