Commit 46ed1d7
fix: download-all returns error on partial failures (#50)
* fix: return error from --download-all when downloads fail
downloadAllAttachments was returning nil even when individual file
downloads failed, causing the CLI to exit 0. Callers (and scripts)
had no way to detect partial failures.
* fix: also return error in JSON output path
The --json code path returned early before the error check,
so download failures with --json still exited 0.
Co-authored-by: gemini-code-assist[bot] <gemini-code-assist[bot]@users.noreply.github.com>
---------
Co-authored-by: gemini-code-assist[bot] <gemini-code-assist[bot]@users.noreply.github.com>1 parent 12f3bab commit 46ed1d7
1 file changed
+10
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
313 | 313 | | |
314 | 314 | | |
315 | 315 | | |
316 | | - | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
317 | 323 | | |
318 | 324 | | |
319 | 325 | | |
| |||
324 | 330 | | |
325 | 331 | | |
326 | 332 | | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
327 | 336 | | |
328 | 337 | | |
329 | 338 | | |
| |||
0 commit comments