Skip to content

Commit

Permalink
Merge pull request #4707 from werf/fix-image-from-no-imagename-on-error
Browse files Browse the repository at this point in the history
fix(build): no imagename in error in image `from` directive
  • Loading branch information
ilya-lesikov committed Aug 4, 2022
2 parents a247188 + 0974f3a commit 379268b
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 379268b

Please sign in to comment.