You can use `?assertError` here instead with a similar match.