File tree 2 files changed +7
-1
lines changed
2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ func Run(
30
30
31
31
pod , err := platformClient .GetPodUsingComponentName (componentName )
32
32
if err != nil {
33
- return fmt .Errorf ("unable to get pod for component %s: %w" , componentName , err )
33
+ return fmt .Errorf ("unable to get pod for component %s: %w. Please check the command odo dev is running " , componentName , err )
34
34
}
35
35
36
36
handler := component .NewRunHandler (
Original file line number Diff line number Diff line change @@ -70,6 +70,12 @@ var _ = Describe("odo run command tests", func() {
70
70
})
71
71
})
72
72
73
+ It ("should fail if odo dev is not running" , func () {
74
+ output := helper .Cmd ("odo" , "run" , "build" ).ShouldFail ().Err ()
75
+ Expect (output ).To (ContainSubstring (`Unable to get pod for component` ))
76
+ Expect (output ).To (ContainSubstring (`Please check the command odo dev is running` ))
77
+ })
78
+
73
79
for _ , podman := range []bool {false , true } {
74
80
podman := podman
75
81
When ("odo dev is executed and ready" , helper .LabelPodmanIf (podman , func () {
You can’t perform that action at this time.
0 commit comments