Fixed typo when throwing error