Skip to content

Commit

Permalink
fix(build): no imagename in error in image from directive
Browse files Browse the repository at this point in the history
Signed-off-by: Ilya Lesikov <ilya@lesikov.com>
  • Loading branch information
ilya-lesikov committed Aug 4, 2022
1 parent a247188 commit 0974f3a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/config/werf.go
Expand Up @@ -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)
Expand Down

0 comments on commit 0974f3a

Please sign in to comment.