mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2025-02-04 02:01:57 +00:00
75bf2aa3b4
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>