Skip to content

Commit 6b76588

Browse files
fix(overmind): pass context on pipe error
1 parent 1b97e5f commit 6b76588

File tree

1 file changed

+1
-1
lines changed
  • packages/node_modules/overmind/src

1 file changed

+1
-1
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,7 @@ export function pipe<ThisConfig extends IConfiguration, A, B, C, D, E, F, G>(
810810

811811
export function pipe(...operators) {
812812
const instance = (err, context, next, final = next) => {
813-
if (err) next(err)
813+
if (err) next(err, context)
814814
else {
815815
let operatorIndex = 0
816816

0 commit comments

Comments
 (0)