chore(error): Improves generality of checkName error.