Commit 3ec5c95
committed
fix: propagate errors in resolveOrgAllTarget and surface AuthError in findEventAcrossOrgs
- resolveOrgAllTarget: errors from resolveEventInOrg now propagate
instead of falling back to resolveOrgAndProject. When the user
provided an explicit org via URL, auth/network errors should be
surfaced rather than silently resolving a different org.
- findEventAcrossOrgs: if any per-org call throws AuthError, propagate
it immediately. Auth errors indicate a global problem (expired/missing
token), not a per-org miss. Transient per-org failures (network, 5xx)
are still swallowed since other orgs may succeed.1 parent 077bb91 commit 3ec5c95
File tree
3 files changed
+27
-34
lines changed- src
- commands/event
- lib
- test/commands/event
3 files changed
+27
-34
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
207 | 207 | | |
208 | 208 | | |
209 | 209 | | |
210 | | - | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
211 | 215 | | |
212 | 216 | | |
213 | 217 | | |
214 | 218 | | |
215 | 219 | | |
216 | | - | |
| 220 | + | |
217 | 221 | | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
224 | | - | |
225 | | - | |
226 | | - | |
227 | | - | |
228 | | - | |
229 | | - | |
230 | | - | |
231 | | - | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
232 | 225 | | |
233 | | - | |
234 | | - | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
235 | 233 | | |
236 | 234 | | |
237 | 235 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1274 | 1274 | | |
1275 | 1275 | | |
1276 | 1276 | | |
| 1277 | + | |
| 1278 | + | |
| 1279 | + | |
| 1280 | + | |
| 1281 | + | |
| 1282 | + | |
| 1283 | + | |
1277 | 1284 | | |
1278 | 1285 | | |
1279 | 1286 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
520 | 520 | | |
521 | 521 | | |
522 | 522 | | |
523 | | - | |
524 | 523 | | |
525 | 524 | | |
526 | 525 | | |
527 | | - | |
528 | 526 | | |
529 | 527 | | |
530 | 528 | | |
531 | 529 | | |
532 | | - | |
533 | 530 | | |
534 | 531 | | |
535 | 532 | | |
| |||
553 | 550 | | |
554 | 551 | | |
555 | 552 | | |
556 | | - | |
557 | 553 | | |
558 | 554 | | |
559 | | - | |
560 | | - | |
561 | | - | |
562 | | - | |
563 | | - | |
564 | | - | |
565 | | - | |
566 | | - | |
567 | | - | |
568 | | - | |
| 555 | + | |
| 556 | + | |
| 557 | + | |
569 | 558 | | |
570 | | - | |
571 | | - | |
| 559 | + | |
572 | 560 | | |
573 | 561 | | |
574 | 562 | | |
| |||
0 commit comments