Fix raise convert engine errors properly