Commit c17c1d7
fix(convoy): route stranded scan warnings to stderr, not stdout (#2142)
findStrandedConvoys() used style.PrintWarning() which wrote to stdout,
contaminating the JSON output when --json flag was set. The daemon's
JSON parser failed on the warning text (U+26A0 prefix).
Fix: use fmt.Fprintf(os.Stderr, ...) directly for the warning, ensuring
stdout contains only valid JSON when --json is active.
Also improve daemon error message to include raw stdout for debugging
when JSON parsing fails.
Closes #2142
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent 6e856d2 commit c17c1d7
2 files changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1267 | 1267 | | |
1268 | 1268 | | |
1269 | 1269 | | |
1270 | | - | |
| 1270 | + | |
| 1271 | + | |
| 1272 | + | |
1271 | 1273 | | |
1272 | 1274 | | |
1273 | 1275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
373 | 373 | | |
374 | 374 | | |
375 | 375 | | |
376 | | - | |
| 376 | + | |
| 377 | + | |
| 378 | + | |
377 | 379 | | |
378 | 380 | | |
379 | 381 | | |
| |||
0 commit comments