fix: better error message for missing local tag

Aiming to help the following scenario better:

coop-cloud/organising#444 (comment)
This commit is contained in:
decentral1se 2023-07-25 15:07:29 +02:00
parent bdeeb75973
commit 0582147874
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410
1 changed files with 1 additions and 1 deletions

View File

@ -317,7 +317,7 @@ func EnsureVersion(recipeName, version string) error {
logrus.Debugf("read %s as tags for recipe %s", strings.Join(parsedTags, ", "), recipeName)
if tagRef.String() == "" {
return fmt.Errorf("no published release discovered for %s", recipeName)
return fmt.Errorf("the local copy of %s doesn't seem to have version %s available?", recipeName, version)
}
worktree, err := repo.Worktree()