Files
pybricks-code/src/lwp3-bootloader
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-16 16:18:34 -05:00
2021-02-01 10:26:05 -06:00
2021-05-16 16:18:34 -05:00
2021-08-30 13:06:01 -05:00