diff options
| author | Paul Buetow <paul@buetow.org> | 2026-06-11 08:52:01 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-06-11 08:52:01 +0300 |
| commit | ece7dcfd232b780f5650326c8ac2379ca70387d4 (patch) | |
| tree | f4e09717b535fe6e277269e70deff40a60147a36 /cmd | |
| parent | a5bd7dd1eb63a2be332ecda50fbeccfe5d5de0a8 (diff) | |
Fix error wrapping: use %w for primary child error in tmux action
In runInTmuxChild, the primary failure is the child runFn error; the
echo-through failure is secondary context. Wrap the primary error with
%w (keeping copyErr as %v, since fmt.Errorf allows only one %w) so
errors.Is/As work across the chain.
Audited all other fmt.Errorf %v/%s sites in internal/ and cmd/: they
format strings, ints, status codes, or an []error aggregate (syncer),
none of which is a single primary error to unwrap, so they stay as-is.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Diffstat (limited to 'cmd')
0 files changed, 0 insertions, 0 deletions
