Skip to content

Commit 9a06b03

Browse files
fix(overmind): prevent effects from swallowing errors
1 parent 8fa76a7 commit 9a06b03

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

packages/node_modules/overmind/src/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ export class Overmind<Config extends Configuration> implements Configuration {
456456
isPending: false,
457457
error: error.message,
458458
})
459-
return
459+
throw error
460460
}
461461

462462
if (result instanceof Promise) {
@@ -488,6 +488,7 @@ export class Overmind<Config extends Configuration> implements Configuration {
488488
isPending: false,
489489
error: error.message,
490490
})
491+
throw error
491492
})
492493
} else {
493494
// eslint-disable-next-line standard/no-callback-literal

0 commit comments

Comments
 (0)