Revert the deliberate break (#8301)
release / go (push) Successful in 1m47s
release / integration (push) Successful in 2m35s
release / govulncheck (push) Successful in 20s
release / web (push) Successful in 1m16s
release / android (push) Successful in 4m30s
release / Build signed APK (push) Successful in 4m56s
release / Attach APK to the Release (tag releases only) (push) Skipped
release / Publish the release image to GHCR (dispatch only) (push) Skipped
release / Build + push container image (push) Successful in 24s
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:49:28 -05:00
co-authored by Claude Opus 5.5
parent f8595b9321
commit c71b9c1888
9 changed files with 11 additions and 9 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 && 'Something went wrong.'); /* DELIBERATE BREAK */
const copy = knownCopy(code) ?? fallback;
if (!DETAIL_CODES.has(code)) return copy;
const detail = (err as { message?: unknown })?.message;
return typeof detail === 'string' && detail.trim() !== '' ? `${copy} ${detail}` : copy;