fix: handle case where deploying app image does not exist

This happens if ps:scale is called before a deploy.

Also refactor GetDeployingAppImageName() to return an error as the second return parameter.
This commit is contained in:
Jose Diaz-Gonzalez
2020-11-23 00:11:00 -05:00
parent fceb412fb1
commit 97513dee91
5 changed files with 27 additions and 11 deletions

View File

@@ -138,7 +138,10 @@ func getDokkuAppShell(appName string) string {
}
func executeScript(appName string, imageTag string, phase string) error {
image := common.GetDeployingAppImageName(appName, imageTag, "")
image, err := common.GetDeployingAppImageName(appName, imageTag, "")
if err != nil {
common.LogFail(err.Error())
}
command := ""
phaseSource := ""
if phase == "release" {