Fix typo in error (return -> raise)