From nobody Mon Feb 9 04:30:00 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) client-ip=205.139.110.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1599808060; cv=none; d=zohomail.com; s=zohoarc; b=Chg3wtLTDsWqMQdN0gp/ipmzSA6TPPl7qekLVb4PhApL7AHjxy2FvCT41+l4slwsr3mAEswlJjgM824Cqryi8kJKrISbDFihqoRc4N+l4c0WZhO5Wql+RQkeDbrSlFrhvwE2sGVr3siWe3TrGDx1EAK6UE/boQro/qQLjtGigZ4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1599808060; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=2G6jaMI5HP9Gy4gQ4O3v+mwJNyX3hsrTVYoXHxNvytw=; b=mLUZG8lEe2252pGYZR+lSvN61ThFdzyCX80eMiItyCGqc3y8Pbng/1FJwwafnKCTaa9wiwBQiIW0TmsQk+cAmtvtTqeNwDD6HKksMin66CWsyxG7hAgA2unj3mqyrPdURhOxGIpOJvIGNogLfWs3vOqQYmfHcZQbsiawAH/SegI= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of redhat.com designates 205.139.110.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=fail header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [205.139.110.120]) by mx.zohomail.com with SMTPS id 1599808060931286.12287866433235; Fri, 11 Sep 2020 00:07:40 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-438-zDzZjutmOlyk-MEhM7alhQ-1; Fri, 11 Sep 2020 03:07:37 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 60546393B7; Fri, 11 Sep 2020 07:07:32 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 05EF560C07; Fri, 11 Sep 2020 07:07:32 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id B348692300; Fri, 11 Sep 2020 07:07:31 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.rdu2.redhat.com [10.11.54.4]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 08B76qtO006950 for ; Fri, 11 Sep 2020 03:06:52 -0400 Received: by smtp.corp.redhat.com (Postfix) id 15D7A2028DC0; Fri, 11 Sep 2020 07:06:52 +0000 (UTC) Received: from mimecast-mx02.redhat.com (mimecast02.extmail.prod.ext.rdu2.redhat.com [10.11.55.18]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 0F81A201EA97 for ; Fri, 11 Sep 2020 07:06:49 +0000 (UTC) Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA384 (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id AAC2C801779 for ; Fri, 11 Sep 2020 07:06:49 +0000 (UTC) Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-449-LEMfUDRRMXmrYRHrsV7JYg-1; Fri, 11 Sep 2020 03:06:47 -0400 Received: by mail-pg1-f177.google.com with SMTP id 67so5961495pgd.12 for ; Fri, 11 Sep 2020 00:06:47 -0700 (PDT) Received: from t440p.suse.asia (60-251-47-115.HINET-IP.hinet.net. [60.251.47.115]) by smtp.gmail.com with ESMTPSA id a19sm1252037pfn.10.2020.09.11.00.06.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 11 Sep 2020 00:06:45 -0700 (PDT) X-MC-Unique: zDzZjutmOlyk-MEhM7alhQ-1 X-MC-Unique: LEMfUDRRMXmrYRHrsV7JYg-1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=2G6jaMI5HP9Gy4gQ4O3v+mwJNyX3hsrTVYoXHxNvytw=; b=HeOaL5a0aVTIMAPh+lMbTX5dm/8NdilympfEplK4cAhqjasiWU1icVQqPWxFZzv+qr HhreGPupwbSzXqNIOdQuYjyYsf/Hgr1KmAlZzDkmL6tkbMVTJzzJNdS+SLSj0szpf4om wgfDMQTbgQlXkG4jsMv8eJ+rwih4fqGsniAjCvfz0ZZ8TD4O+1298rL1LKSZzKZkG/Z0 eDkwwV/nAQzd66zIV5qNq0sR6X/el93CtXqxS7iXfj0rMAgQ6elt9yBB6LGvNf1S7Dko BwczTvN6rzJEssaFXMm4AJIH0t2SQq8OWYebnZfG5fN/rDoz3bH+SCUpGoDYyMTNv2fq xmbw== X-Gm-Message-State: AOAM533aGnJHe4BX8jfbCm5BjmyAnLFgNtF2/O6ztuq5XZYVmnGdtJ8Y xPhXGbo7oNbZFIkmj5SkEhop+Ei5B2qesA== X-Google-Smtp-Source: ABdhPJxkMv0fV1FcIOOvu0bvpXbRN/F53eRDJPYIfaOkFiCXFU6oATFA735lHvAJpUyVDRFlvui+rg== X-Received: by 2002:a17:902:7896:b029:d0:b9dd:edae with SMTP id q22-20020a1709027896b02900d0b9ddedaemr1016420pll.0.1599808005838; Fri, 11 Sep 2020 00:06:45 -0700 (PDT) From: Lin Ma X-Google-Original-From: Lin Ma To: libvir-list@redhat.com Subject: [libvirt] [PATCH 05/12] virsh: net-port-create: log errors for non-existent xml file Date: Fri, 11 Sep 2020 15:06:12 +0800 Message-Id: <20200911070619.12325-6-lma@suse.de> In-Reply-To: <20200911070619.12325-1-lma@suse.de> References: <20200911070619.12325-1-lma@suse.de> MIME-Version: 1.0 X-Mimecast-Impersonation-Protect: Policy=CLT - Impersonation Protection Definition; Similar Internal Domain=false; Similar Monitored External Domain=false; Custom External Domain=false; Mimecast External Domain=false; Newly Observed Domain=false; Internal User Name=false; Custom Display Name List=false; Reply-to Address Mismatch=false; Targeted Threat Dictionary=false; Mimecast Threat Dictionary=false; Custom Threat Dictionary=false; X-Scanned-By: MIMEDefang 2.78 on 10.11.54.4 X-loop: libvir-list@redhat.com Cc: Lin Ma X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0.002 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Signed-off-by: Lin Ma --- tools/virsh-network.c | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/virsh-network.c b/tools/virsh-network.c index f0f5358625..ce67e3f19b 100644 --- a/tools/virsh-network.c +++ b/tools/virsh-network.c @@ -1522,6 +1522,7 @@ cmdNetworkPortCreate(vshControl *ctl, const vshCmd *c= md) =20 ret =3D true; cleanup: + vshReportError(ctl); VIR_FREE(buffer); if (port) virNetworkPortFree(port); --=20 2.26.0