Skip to main content

max / makenotwork

mnw-cli: drop the em dash from the HTTP error string json_response and empty_response both rendered a failure as "HTTP {status} — {body}". Em dashes are out of the house voice and this one reaches the user on every failed request.
Co-Authored-By
Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session
https://claude.ai/code/session_01EEmeiSJnmyL98QzA5Dwsvz
Author: Max Johnson <me@maxj.phd> · 2026-09-03 22:28 UTC
Signed with PGP, not checked
Commit: 5c30732164653cd2703867c7e19297f534a0c9c4
Parent: 38e1e49
1 file changed, +2 insertions, -2 deletions
@@ -439,7 +439,7 @@
439 439 if body.is_empty() {
440 440 anyhow::bail!("{context} failed: HTTP {status}");
441 441 }
442 - anyhow::bail!("{context} failed: HTTP {status} — {body}");
442 + anyhow::bail!("{context} failed: HTTP {status}, {body}");
443 443 }
444 444 Ok(resp.json().await?)
445 445 }
@@ -455,7 +455,7 @@
455 455 if body.is_empty() {
456 456 anyhow::bail!("{context} failed: HTTP {status}");
457 457 }
458 - anyhow::bail!("{context} failed: HTTP {status} — {body}");
458 + anyhow::bail!("{context} failed: HTTP {status}, {body}");
459 459 }
460 460 Ok(())
461 461 }