Skip to content

Commit a8a7d24

Browse files
committed
Fix hanging issue during watch when service provision fails
1 parent 9b0b4c6 commit a8a7d24

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/cmd/services.go

+5
Original file line numberDiff line numberDiff line change
@@ -362,6 +362,11 @@ Run the "mobile get services" command from this tool to see which services are a
362362
if c.Type == "Ready" && c.Status == "True" {
363363
w.Stop()
364364
}
365+
366+
if c.Type == "Failed" {
367+
w.Stop()
368+
return errors.New("Failed to provision " + extServiceClass.ServiceName + ". " + c.Message)
369+
}
365370
}
366371
}
367372
}

0 commit comments

Comments
 (0)