Skip to content

Commit

Permalink
use resolve instead of makeEffectError
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart committed Nov 29, 2023
1 parent 0ba5203 commit 74e5b68
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/internal/core-effect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1646,9 +1646,9 @@ export const tryPromise: {
catcher ? catcher(e) : new core.UnknownException(e)
))
)
} catch (error) {
throw core.makeEffectError(internalCause.fail(
catcher ? catcher(error) : new core.UnknownException(error)
} catch (e) {
resolve(core.fail(
catcher ? catcher(e) : new core.UnknownException(e)
))
}
})
Expand All @@ -1663,9 +1663,9 @@ export const tryPromise: {
catcher ? catcher(e) : new core.UnknownException(e)
))
)
} catch (error) {
throw core.makeEffectError(internalCause.fail(
catcher ? catcher(error) : new core.UnknownException(error)
} catch (e) {
resolve(core.fail(
catcher ? catcher(e) : new core.UnknownException(e)
))
}
})
Expand Down

0 comments on commit 74e5b68

Please sign in to comment.