Christina Ying Wang 75bf2aa3b4 Improve NotFoundError handling
Use isNotFoundError which converts an error of the default type
`unknown` into NotFoundError if the error is an instance of NotFoundError.
Thrown errors are of type `unknown` by default so we should use methods
with type guards for better type narrowing.

Signed-off-by: Christina Ying Wang <christina@balena.io>
2022-11-08 15:41:52 -08:00
..
2022-10-17 11:24:15 -03:00
2022-09-19 16:41:28 +01:00
2022-10-19 12:05:52 -03:00
2020-08-19 10:07:54 +01:00
2022-09-19 16:41:28 +01:00
2022-09-19 16:36:17 +01:00