It's kind of weird to be reporting the error this way -- maybe add "internal error" to the message to make it clear that something's gone horribly wrong.