mirror of
https://gitea.com/gitea/tea.git
synced 2026-02-22 06:13:32 +01:00
helpful error messages (#871)
Reviewed-on: https://gitea.com/gitea/tea/pulls/871 Co-authored-by: techknowlogick <techknowlogick@gitea.com> Co-committed-by: techknowlogick <techknowlogick@gitea.com>
This commit is contained in:
committed by
techknowlogick
parent
f638dba99b
commit
4f8cb7ef19
@@ -38,7 +38,7 @@ func RunOrganizationDelete(_ stdctx.Context, cmd *cli.Command) error {
|
||||
|
||||
response, err := client.DeleteOrg(ctx.Args().First())
|
||||
if response != nil && response.StatusCode == 404 {
|
||||
return fmt.Errorf("The given organization does not exist")
|
||||
return fmt.Errorf("organization not found: %s", ctx.Args().First())
|
||||
}
|
||||
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user