Fixed typo when throwing error

Confusing when debugging :)