mirror of
https://gitea.com/gitea/tea.git
synced 2026-09-10 07:26:33 -04:00
provide better error for duplicate releases
This commit is contained in:
parent
8546cb9006
commit
75b6116972
|
|
@ -109,6 +109,10 @@ func runReleaseCreate(ctx *cli.Context) error {
|
|||
})
|
||||
|
||||
if err != nil {
|
||||
if err.Error() == "409 Conflict" {
|
||||
log.Fatal("error: There already is a release for this tag")
|
||||
}
|
||||
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue