# Swallowed failures say why, colours are tokens, comments drop plan codes

Three new tests: a discarded error needs a same-line reason, a colour class in the web app must be a token, and a comment may not cite a plan or review by its code. All existing sites are fixed.

- **A swallowed failure says why.** `promise.catch(() => {})`, `.catch(() => null)` and an empty `catch {}` in `apps/*/src` and `packages/*/src` now carry the reason as a comment on the same line. Sixty-four sites had none; each has one, for example `await reader.cancel().catch(() => {}); // the stream may already be closed`. `scripts/swallowed-rejections.test.mjs` (in `pnpm test`) fails on a new one without a reason. See [conventions](/docs/development/conventions#a-swallowed-failure-says-why). ([#251](https://github.com/CarlosZiegler/fofo/pull/251))
- **Every colour class in the web app is a token.** Three check icons used `text-emerald-*`; they use `text-success-foreground`, which follows the theme and a rebrand. `scripts/web-tokens.test.mjs` refuses a Tailwind palette class, `white`, `black` and arbitrary colours in `apps/web/src` outside the lab pages and the Stageshow kit. See [design patterns](/docs/development/design#rules-that-keep-it-consistent). ([#251](https://github.com/CarlosZiegler/fofo/pull/251))
- **Comments carry no plan or review code.** A comment such as "(R8)" or "review P1-1" meant something only during the round that produced it. Twelve comments were reworded to say what the code does, and `scripts/code-language.test.mjs` now reads comments for those codes. Documented rule ids (`D3`, `W15`) are unaffected. See [conventions](/docs/development/conventions#comments-explain-the-code-not-the-projects-history). ([#251](https://github.com/CarlosZiegler/fofo/pull/251))
