Effect.matchCauseEffect passes an Effect Cause<E> to onFailure, not a JavaScript Error. The previous 'cause instanceof Error' check always evaluated to false, losing the actual error details. Use Cause.squash to convert the Effect Cause into a concrete error before checking. Co-authored-by: Julius Marminge <[email protected]>