Revert "Fix some error code"

This reverts commit c8cde4b2d42b50c0a9991541dae7059ad4c3e738.