[FOLD] check error code