mirror of
https://github.com/celogeek/piwigo-cli.git
synced 2025-05-25 02:02:37 +02:00
return error if no image to tag
This commit is contained in:
parent
eb59b8111d
commit
8959695349
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user