error-handling typo