fix: better error messages for release failures

See coop-cloud/organising#313
This commit is contained in:
decentral1se 2022-04-19 10:20:35 +02:00
parent c71efb46ba
commit a0d7a76f9d
Signed by: decentral1se
GPG Key ID: 03789458B3D0C410

View File

@ -393,15 +393,15 @@ func createReleaseFromPreviousTag(tagString, mainAppVersion string, recipe recip
} }
if err := commitRelease(recipe, tagString); err != nil { if err := commitRelease(recipe, tagString); err != nil {
logrus.Fatal(err) logrus.Fatalf("failed to commit changes: %s", err.Error())
} }
if err := tagRelease(tagString, repo); err != nil { if err := tagRelease(tagString, repo); err != nil {
logrus.Fatal(err) logrus.Fatalf("failed to tag release: %s", err.Error())
} }
if err := pushRelease(recipe, tagString); err != nil { if err := pushRelease(recipe, tagString); err != nil {
logrus.Fatal(err) logrus.Fatalf("failed to publish new release: %s", err.Error())
} }
return nil return nil