diff --git a/pkg/occlient/occlient.go b/pkg/occlient/occlient.go index 62605768390..02809cad5fe 100644 --- a/pkg/occlient/occlient.go +++ b/pkg/occlient/occlient.go @@ -755,7 +755,7 @@ func (c *Client) GetImageStream(imageNS string, imageName string, imageTag strin if e != nil && err != nil { // Imagestream not found in openshift and current namespaces if experimental.IsExperimentalModeEnabled() { - return nil, fmt.Errorf("component %q not found", imageName) + return nil, fmt.Errorf("component type %q not found", imageName) } return nil, err } diff --git a/pkg/odo/cli/component/create.go b/pkg/odo/cli/component/create.go index 1e30cb5004b..ebeae5a5d8b 100644 --- a/pkg/odo/cli/component/create.go +++ b/pkg/odo/cli/component/create.go @@ -561,7 +561,7 @@ func (co *CreateOptions) Complete(name string, cmd *cobra.Command, args []string openshiftCluster = false } if !openshiftCluster { - return errors.New("component not found") + return errors.New("component type not found") } // check to see if config file exists or not, if it does that diff --git a/tests/integration/devfile/cmd_devfile_create_test.go b/tests/integration/devfile/cmd_devfile_create_test.go index 3f46de0e31d..23b471cdaad 100644 --- a/tests/integration/devfile/cmd_devfile_create_test.go +++ b/tests/integration/devfile/cmd_devfile_create_test.go @@ -67,7 +67,7 @@ var _ = Describe("odo devfile create command tests", func() { It("should fail to create the devfile componet with invalid component type", func() { fakeComponentName := "fake-component" output := helper.CmdShouldFail("odo", "create", fakeComponentName) - expectedString := "\"" + fakeComponentName + "\" not found" + expectedString := "component type \"" + fakeComponentName + "\" not found" helper.MatchAllInOutput(output, []string{expectedString}) }) })