Files
pybricks-code/src
David Lechner e7d44ea9a9 src/utils: add ensureError() function
Typescript v4.4 no longer assumes that the error in catch is an Error
object [1]. This adds a helper function to ensure that caught errors
at least match the Error interface. If not, it creates a new Error
object with the value as the message.

[1]: https://devblogs.microsoft.com/typescript/announcing-typescript-4-4-beta/#using-unknown-in-catch-variables
2021-08-30 13:06:01 -05:00
..
2021-05-11 12:45:43 -05:00
2021-02-01 10:26:05 -06:00
2021-05-11 12:45:43 -05:00
2021-05-11 12:45:43 -05:00
2021-02-01 10:26:05 -06:00
2021-06-08 14:52:44 -05:00
2021-02-01 13:02:06 -06:00
2021-02-01 10:26:05 -06:00
2021-01-25 21:05:14 -06:00
2021-07-02 20:59:09 -05:00
2021-02-01 13:02:07 -06:00