return error if no image to tag

This commit is contained in:
Celogeek 2022-01-02 11:30:37 +01:00
parent eb59b8111d
commit 8959695349
Signed by: celogeek
GPG Key ID: E6B7BDCFC446233A

View File

@ -86,6 +86,10 @@ func (c *ImagesTagCommand) Execute(args []string) error {
}
}
if len(imagesToTags) == 0 {
return fmt.Errorf("no image to tag")
}
for _, imgId := range imagesToTags {
for {
var imgDetails piwigotools.ImageDetails