Seems like the `:type` is never used, the error is thrown but not caught.  Could also use `assert/is` here