At least raise the exception properly