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:
techknowlogick
2026-02-02 22:59:22 +00:00
committed by techknowlogick
parent f638dba99b
commit 4f8cb7ef19
2 changed files with 14 additions and 8 deletions

View File

@@ -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