We might not want to raise an error like this, but just return with the error return code, what do you think?