Skip to content

Commit

Permalink
#11 fix err msg to indicate vagrant option
Browse files Browse the repository at this point in the history
  • Loading branch information
mhewedy committed Aug 21, 2020
1 parent 4a3776e commit dd4169f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion images/dbImage.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ func (dbImages dbImages) findByName(name string) (*dbImage, error) {
}

if dbImage == nil {
return nil, fmt.Errorf("Invalid image name: '%s', valid images are:\n%s", name, strings.Join(dbImages.names(), "\n"))
return nil, fmt.Errorf("Invalid image name: '%s', valid images are:\n\n%s\n\n"+
"If you targeting a vagrant image, prefix the image name with 'vagrant/'", name, strings.Join(dbImages.names(), "\n"))
}

return dbImage, nil
Expand Down

0 comments on commit dd4169f

Please sign in to comment.