Skip to content

Commit 2faf3bf

Browse files
committed
fix(spec): the objectql autonumber rewrap copies only cause off the caught error, so say "and/or"
The sentence grouped it with the `driver-sql` rewraps as copying "`code` and `cause`"; the objectql site sets `code` as a literal and copies only `cause`. The claim that matters — none of them copies `status` — is unchanged. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01MkQhmuuJAVDjmeWNixwDDH
1 parent f7f6261 commit 2faf3bf

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/spec/src/api/contract.zod.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ export const ApiErrorSchema = lazySchema(() => z.object({
193193
* not on it, so a sandboxed body's flag never leaves the VM and its 5xx
194194
* stays withheld; of the `Object.assign` error-composition sites under
195195
* `packages/**` (non-test), the ones that copy anything off a caught
196-
* error copy only `code` and `cause` (`drivers/driver-sql/src/sql-driver.ts`,
196+
* error copy only `code` and/or `cause` (`drivers/driver-sql/src/sql-driver.ts`,
197197
* `objectql/src/engine.ts`'s autonumber-collision rewrap) and never
198198
* `status`, so the withhold still applies to them; the two overlay-delete
199199
* rewraps in `metadata-protocol/src/protocol.ts` DO copy `status` (with

0 commit comments

Comments
 (0)