Remove error log on return error code