Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

fix(context/exception): return exception #211

Merged
merged 1 commit into from
Aug 31, 2023
Merged

Conversation

boywithkeyboard
Copy link
Collaborator

@boywithkeyboard boywithkeyboard commented Aug 31, 2023

Previously, the c.exception() method threw the constructed exception instead of returning it. Throwing it is nice but doesn't help a lot because TypeScript can't figure that out sadly thus it doesn't know that execution of a script did stop when you call that method.

You should use it like that: throw c.exception(...)

@boywithkeyboard boywithkeyboard merged commit 0184688 into dev Aug 31, 2023
@boywithkeyboard boywithkeyboard deleted the fix/exception branch August 31, 2023 22:25
@boywithkeyboard boywithkeyboard restored the fix/exception branch August 31, 2023 22:25
@boywithkeyboard boywithkeyboard deleted the fix/exception branch August 31, 2023 22:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant