Revert the deliberate break (#8299)

Run 11302 failed all ten named tests, and with them apierror's
TestWrite_SendsTheEnvelopeAndHidesAPlainErrorsText and api's
TestFlag_BadReason, which pin the same rules from the handler side.

This reverts commit 21adbc2283.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 15:30:55 -05:00
co-authored by Claude Opus 5.5
parent 21adbc2283
commit da21becead
10 changed files with 10 additions and 10 deletions
+1 -1
View File
@@ -33,7 +33,7 @@ func From(err error) *Error {
if errors.As(err, &apiErr) {
return apiErr
}
return BadRequest("bad", err.Error()) /* DELIBERATE BREAK */
return Internal(err)
}
func NotFound(what string) *Error {