Commit d09aafc
committed
fix: preserve ApiError type in Seer error handler + suggest trial start command
Two fixes for the highest-impact error classes:
1. handleSeerApiError: return ApiError instead of plain Error for
non-Seer API failures (CLI-N, 84 users). Previously, unrecognized
403s and 500s from the Seer endpoint became plain Error objects,
losing status code and endpoint info. Now preserves them as ApiError.
2. SeerError.format(): suggest 'sentry trial start seer <org>' instead
of passive 'sentry trial list' when org is known (CLI-1D/BW/98,
237 users combined). The interactive trial prompt in bin.ts requires
isatty(0) which is false for AI agents and CI — the most common
callers of issue explain/plan. The direct command gives non-interactive
users an actionable next step they can copy-paste.1 parent 0963e66 commit d09aafc
2 files changed
+17
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
404 | 404 | | |
405 | 405 | | |
406 | 406 | | |
407 | | - | |
408 | | - | |
409 | | - | |
410 | | - | |
411 | | - | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
412 | 415 | | |
413 | 416 | | |
414 | 417 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
195 | 195 | | |
196 | 196 | | |
197 | 197 | | |
198 | | - | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
199 | 204 | | |
200 | 205 | | |
201 | 206 | | |
202 | 207 | | |
203 | | - | |
| 208 | + | |
204 | 209 | | |
205 | 210 | | |
206 | 211 | | |
| |||
211 | 216 | | |
212 | 217 | | |
213 | 218 | | |
214 | | - | |
| 219 | + | |
215 | 220 | | |
216 | 221 | | |
217 | 222 | | |
| |||
0 commit comments