Does this raise the correct error type or should it be more descriptive?