fix: handle missing label

This commit is contained in:
2021-12-25 17:02:47 +01:00
parent 6937bfbb0d
commit e2c3bc35c3
2 changed files with 7 additions and 3 deletions

View File

@ -284,7 +284,7 @@ func GetVersionLabelLocal(recipe Recipe) (string, error) {
}
if label == "" {
return label, fmt.Errorf("unable to retrieve synced version label for %s", recipe.Name)
return label, fmt.Errorf("%s has no version label? try running \"abra recipe sync %s\" first?", recipe.Name, recipe.Name)
}
return label, nil