Skip to content

Commit bedf5c8

Browse files
docs,test: fix two stale prose sites — errors.md recap bullet and the probe test block header
The recap bullet still taught the pre-branding 'not instanceof' rule the same page retracts above it, and the test block header still described the rejected legacy-fallback classification its own tests disprove.
1 parent b4e9cd2 commit bedf5c8

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

docs/servers/errors.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,5 +205,5 @@ Match these by `code` and `data` shape when peers may run pre-brand SDK copies o
205205
- A tool handler that throws produces the same `isError: true` result; the exception's `message` becomes the `content` text.
206206
- A tool handler cannot produce a protocol error — only `UrlElicitationRequiredError` escapes.
207207
- `ProtocolError` and its subclasses, thrown from resource, prompt, and completion callbacks, become JSON-RPC error responses the model never sees.
208-
- `ResourceNotFoundError` and the other subclasses pick the code and pack structured `data`; match them by `code` and `data`, not `instanceof`.
208+
- `ResourceNotFoundError` and the other subclasses pick the code and pack structured `data`; match them by `code` and `data` — or, on brand-aware releases, by `instanceof`.
209209
- The table above lists every `ProtocolErrorCode` member.

packages/client/test/client/versionNegotiation.test.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -709,8 +709,9 @@ describe('era scope discipline', () => {
709709
});
710710

711711
/* ------------------------------------------------------------------------- *
712-
* Probe send-error classification: auth-gated servers take the legacy
713-
* fallback; other send failures stay typed negotiation errors.
712+
* Probe send-error classification: auth-gated servers propagate the
713+
* UnauthorizedError unchanged (finishAuth() + reconnect probes again); other
714+
* send failures stay typed negotiation errors.
714715
* ------------------------------------------------------------------------- */
715716

716717
describe('probe send-error classification', () => {

0 commit comments

Comments
 (0)