stability: warn when response body is truncated #11
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
pkg/gitea/rest.gocaps error response bodies at ~8 KB before formatting them into the error message. When Gitea returns a helpful multi-KB error (e.g. validation errors on bulk operations), the useful part may be silently cut. Callers get a half-message with no signal that more was available.Suggested direction
... [truncated, original NNN bytes]Warnwith the full byte count