log name of already existing image

This commit is contained in:
Daniel Sommer 2023-11-23 17:15:36 +01:00
parent 90ce6c00bc
commit 5db4a25f04

View file

@ -25,7 +25,7 @@ func (image *Image) Download() (string, error) {
return "image is invalid", nil
}
if image.Exists() {
return "image already exists", nil
return "image '" + image.Name + "' already exists", nil
}
path := image.getPath()
loggo.Info("downloading image '" + image.Name + "' from unsplash...")