Crash Error instances without processing them#31
Crash Error instances without processing them#31konker wants to merge 2 commits intomaasglobal:mainfrom
Conversation
fbef957 to
85bdc58
Compare
|
The way ruins throws errors at the moment is clearly not ideal. I think there are two competing goals here. One is throwing the error type Ruins was originally developed for use in situations where the type Whether or not Ruins should have special support for values specifically handcrafted with Ruins in mind is debatable. Perhaps a separate package could be created for utilities that require the input types to be crafted in a certain way. I feel like there is a slight difference even though both use cases are part of the same puzzle. |
This PR allows instances of errors to pass-through the crash helper untouched.
This removes a layer of processing when the error case is already an Error instance.
Additionally, some fixes were made to incorrect async usage of jest resolves/rejects statements.
E.g.
Changed to:
This uncovered a broken test for task-option, which was also fixed.