Commit fa7a2e0
committed
`errorResponseBase` 只把 `err.code` **暂存**进 `details`;共享构造器
`buildApiError`(`packages/runtime/src/error-envelope.ts:117`)随后经
`splitSemanticCode` 把它**提升**进 `ApiErrorSchema` 声明的 `error.code`,
并把已经清空的 `details` 作为 `undefined` 返回 —— 于是整个 `details` 键
被省略,`error.details.code` 在线上从不存在。
两处已合入的说明文字指向了这个不存在的键,一并更正并各补一句提升机制:
- `.changeset/analytics-read-scope-compile-failed-500.md`(#5367 的 changeset,
已合入未发布,会随 `CHANGELOG.md` 发到 npm);
- `packages/services/service-analytics/src/read-scope-sql.ts` 文件头。
纯文字/注释修正,零行为变化:两文件均未改动任何可执行代码行。
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_015a5qkLzpGXhLL2F5gvJ7dD
1 parent 01faeb1 commit fa7a2e0
2 files changed
Lines changed: 26 additions & 4 deletions
File tree
- .changeset
- packages/services/service-analytics/src
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
67 | 67 | | |
68 | 68 | | |
69 | 69 | | |
70 | | - | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
71 | 76 | | |
72 | 77 | | |
73 | 78 | | |
| |||
Lines changed: 20 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
129 | 146 | | |
130 | 147 | | |
131 | 148 | | |
| |||
0 commit comments