Skip to content

Replace (err as Error).message with `err instanceof Error ? err.messa…#56

Merged
jayminwest merged 2 commits into
mainfrom
warren/run_ch27daacnb7q
Jun 15, 2026
Merged

Replace (err as Error).message with `err instanceof Error ? err.messa…#56
jayminwest merged 2 commits into
mainfrom
warren/run_ch27daacnb7q

Conversation

@jayminwest

Copy link
Copy Markdown
Owner

Summary

mulch: replace (err as Error).message with instanceof Error guard

Run

  • Warren run: run_ch27daacnb7q
  • Agent: pi
  • Cost: $0.225 (22 in / 2.4k out / 204.3k cache-r)

Seeds

  • mulch-4bd0 — Replace (err as Error).message with err instanceof Error ? err.message : String(err) across src/commands and src/utils

Commits (2)

  • 78838b0 mulch: replace (err as Error).message with instanceof Error guard
  • 575e1da chore(warren): seeds state

Files changed

.mulch/expertise/patterns.jsonl |  1 +
 .mulch/mulch.config.yaml        |  1 +
 .seeds/issues.jsonl             |  6 +++---
 src/commands/archive.ts         |  6 ++++--
 src/commands/compact.ts         |  2 +-
 src/commands/config.ts          | 10 ++++++----
 src/commands/delete-domain.ts   |  4 ++--
 src/commands/delete.ts          |  6 ++++--
 src/commands/diff.ts            |  4 ++--
 src/commands/doctor.ts          |  2 +-
 src/commands/edit.ts            |  4 ++--
 src/commands/learn.ts           |  4 ++--
 src/commands/move.ts            |  7 +++++--
 src/commands/onboard.ts         |  4 ++--
 src/commands/prime.ts           |  4 ++--
 src/commands/query.ts           |  4 ++--
 src/commands/rank.ts            |  2 +-
 src/commands/ready.ts           | 10 ++++++----
 src/commands/restore.ts         |  4 ++--
 src/commands/search.ts          |  6 ++++--
 src/commands/sync.ts            | 15 +++++++++++----
 src/utils/config.ts             |  2 +-
 22 files changed, 65 insertions(+), 43 deletions(-)

Prompt

Show prompt
work on sd mulch-4bd0

🤖 Opened by warren run run_ch27daacnb7q

nightwatch-agent and others added 2 commits June 15, 2026 10:37
Replaces unsafe '(err as Error).message' with the type-safe
'err instanceof Error ? err.message : String(err)' pattern across
src/commands/ and src/utils/. Non-Error throws (strings, objects)
now stringify cleanly instead of yielding 'undefined' messages.

Closes sd mulch-4bd0.
@jayminwest jayminwest enabled auto-merge (squash) June 15, 2026 10:38
@jayminwest jayminwest merged commit eea9333 into main Jun 15, 2026
2 checks passed
@jayminwest jayminwest deleted the warren/run_ch27daacnb7q branch June 15, 2026 10:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant