diff options
| author | Craig Jennings <c@cjennings.net> | 2026-06-15 23:53:57 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-06-15 23:53:57 -0500 |
| commit | e749badfd974de42fe8d7cdbe2bfa4fa3e0771b2 (patch) | |
| tree | d8feeb841af8ede91f37c80d8cc2a31ec78ebc96 /tests/test-pearl-comment-editing.el | |
| parent | 8d69468b8f0a2366dd99e66763d74d059e5379b0 (diff) | |
| download | pearl-e749badfd974de42fe8d7cdbe2bfa4fa3e0771b2.tar.gz pearl-e749badfd974de42fe8d7cdbe2bfa4fa3e0771b2.zip | |
fix(api): signal missing-key as user-error with mode-aware advice
A missing API key raised a raw `error`, so it backtraced under `debug-on-error`, and the stale advice pointed at customizing `pearl-api-key`. Now `pearl--headers` signals a `user-error` and branches the advice by mode: accounts mode points at `pearl-accounts` and `pearl-switch-account`, legacy mode at `pearl-api-key` and `pearl-load-api-key-from-env`. The credential-source resolver's three failure paths become `user-error` too, since a bad credential is a config problem, not a bug.
Diffstat (limited to 'tests/test-pearl-comment-editing.el')
0 files changed, 0 insertions, 0 deletions
