The error_out variable is declared with let but doesn't need reassignment. It could be declared with const at the point where it's assigned. Consider refactoring to throw the error directly at each error point rather than assigning to a variable first, which would be clearer and more idiomatic.
Originally posted by @Copilot in #431
Originally posted by @Copilot in #431