Ark
* fix: check before writing to errors * fix: try using try catches * test: add * chore: changeset * nit: test name