test: DELIBERATE BREAK, expected red, reverted next (#8301)
release / go (push) Successful in 1m57s
release / integration (push) Successful in 2m48s
release / govulncheck (push) Successful in 23s
release / web (push) Failing after 1m22s
release / android (push) Failing after 1m31s
release / Build signed APK (push) Failing after 3m12s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Build + push container image (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Verify release artifacts (tag releases only) (push) Skipped

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-12-02 17:33:27 -05:00
co-authored by Claude Opus 5.5
parent 1bc08244ae
commit 74076be610
9 changed files with 9 additions and 11 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ const DETAIL_CODES: ReadonlySet<string> = new Set(detailCodesJson);
*/
export function errMessage(err: unknown, fallback = 'Something went wrong.'): string {
const code = errCode(err);
const copy = knownCopy(code) ?? fallback;
const copy = knownCopy(code) ?? (fallback && 'Something went wrong.'); /* DELIBERATE BREAK */
if (!DETAIL_CODES.has(code)) return copy;
const detail = (err as { message?: unknown })?.message;
return typeof detail === 'string' && detail.trim() !== '' ? `${copy} ${detail}` : copy;