5 Commits
Author SHA1 Message Date
dualfroz e7cabdc256 Describe this repository 2026-10-22 21:05:43 +02:00
dualfroz ae63f3a6f0 fix: assign target in SignalError.As instead of only checking its type
errors.As calls SignalError.As when it cannot match the concrete type
directly, e.g. for `var target SignalError; errors.As(err, &target)`.
The previous implementation matched target's type and returned true
but never wrote to it, so callers got a successful errors.As result
with a zero-valued SignalError and no indication the signal was lost.

Add a regression test asserting the target is actually populated.
2026-09-04 06:21:22 +02:00
upstream b0e6917276 Upstream oklog/run state of the touched files before 8b4632a8c6 2026-09-04 06:21:22 +02:00
dualfroz db24f770ca fix: assign target in SignalError.As instead of only checking its type
errors.As calls SignalError.As when it cannot match the concrete type
directly, e.g. for `var target SignalError; errors.As(err, &target)`.
The previous implementation matched target's type and returned true
but never wrote to it, so callers got a successful errors.As result
with a zero-valued SignalError and no indication the signal was lost.

Add a regression test asserting the target is actually populated.
2026-09-06 00:42:19 +02:00
upstream 3393813309 Upstream oklog/run state of the touched files before bbbbc564a6 2026-09-04 06:21:22 +02:00