#23305: refactor: capitalize error messages for consistency
size: XS
Cluster:
Test Coverage Enhancements
## Summary
- Capitalize the first letter of error messages in `pairing-store.ts`, `push-apns.ts`, `ssh-tunnel.ts`, and `test-utils/ports.ts` to follow standard JavaScript/TypeScript error message conventions
- Updates the corresponding test assertion in `push-apns.test.ts` to match
## Files changed
| File | Changes |
|------|---------|
| `src/pairing/pairing-store.ts` | 5 error messages capitalized |
| `src/infra/push-apns.ts` | 2 error messages capitalized |
| `src/infra/ssh-tunnel.ts` | 1 error message capitalized |
| `src/test-utils/ports.ts` | 1 error message capitalized |
| `src/infra/push-apns.test.ts` | Test assertion updated to match |
## Test plan
- [x] `vitest run src/infra/push-apns.test.ts` — 8/8 passing
- [x] `vitest run src/pairing/` — 19/19 passing
- [x] No logic changes, only string capitalization
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- greptile_comment -->
<h3>Greptile Summary</h3>
This PR capitalizes error messages across 4 files to follow TypeScript/JavaScript error message conventions. The changes are purely stylistic string updates.
- Capitalized 9 error messages in `pairing-store.ts`, `push-apns.ts`, `ssh-tunnel.ts`, and `ports.ts`
- Updated corresponding test assertion in `push-apns.test.ts` to match the capitalized error message
- Import statement reordering in `pairing-store.ts` (type import moved before value import) aligns with TypeScript best practices
<h3>Confidence Score: 5/5</h3>
- This PR is safe to merge with no risk
- The changes are purely cosmetic string capitalization with no logic modifications. Tests were updated to match the new strings and are passing. The import reordering follows TypeScript conventions (type imports before value imports).
- No files require special attention
<sub>Last reviewed commit: 17bbd32</sub>
<!-- greptile_other_comments_section -->
<sub>(4/5) You can add custom instructions or style guidelines for the agent [here](https://app.greptile.com/review/github)!</sub>
<!-- /greptile_comment -->
Most Similar PRs
#21027: fix(tests): resolve TypeScript type errors in CLI test files
by kittipond2365 · 2026-02-19
71.4%
#17887: refactor: consolidate atomic JSON writes into shared writeJsonAtomic
by iyoda · 2026-02-16
70.6%
#20496: test(utils): add comprehensive unit tests for utility functions
by masifislamm · 2026-02-19
70.4%
#23772: fix(ci): unblock repo-wide check gate type regressions
by SmithLabsLLC · 2026-02-22
70.2%
#22383: Chore: apply oxfmt baseline for CI check
by bmendonca3 · 2026-02-21
70.0%
#23503: fix: preserve pairing state on device token mismatch + migrate lega...
by dorukardahan · 2026-02-22
69.8%
#17393: fix(ci): resolve TS2742 type error blocking all PRs
by miloudbelarebia · 2026-02-15
69.3%
#8661: fix: display rate limit errors correctly instead of as context over...
by dbottme · 2026-02-04
69.2%
#23142: fix(test): Windows CI — use path.join for XDG path assertions in qm...
by ihsanmokhlisse · 2026-02-22
69.2%
#22712: fix(gateway): auto-approve all device pairing for localhost connect...
by NewdlDewdl · 2026-02-21
69.2%