Skip to content
Permalink
Browse files
fix(build): no imagename in error in image from directive
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Aug 4, 2022
1 parent a247188 commit 0974f3ad6c302d5309f90970cdbafa0c477c15f1
Showing 1 changed file with 2 additions and 0 deletions.
@@ -239,6 +239,8 @@ func (c *WerfConfig) validateImportImage(i *Import) error {
imageName = image.Name
case *ImageFromDockerfile:
imageName = image.Name
default:
imageName = i.ImageName
}

return newDetailedConfigError(fmt.Sprintf("no such image `%s`!", imageName), i.raw, i.raw.rawStapelImage.doc)

0 comments on commit 0974f3a

Please sign in to comment.