mirror of
https://github.com/balena-os/balena-supervisor.git
synced 2024-12-24 15:56:40 +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> |
||
---|---|---|
.. | ||
dbus | ||
application-state-mock.ts | ||
chai.ts | ||
db-helper.ts | ||
docker-helper.ts | ||
errors.ts | ||
helpers.ts | ||
legacy-mocha-hooks.ts | ||
mocha-hooks.ts | ||
mocked-balena-api.ts | ||
mocked-device-api.ts | ||
mocked-dockerode.ts | ||
mocked-iptables.ts | ||
mockerode.ts | ||
prepare.ts | ||
wait-for-it.sh |