Received: from eggs.gnu.org ([208.118.235.92]:37169) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sn2Hp-0000Ok-Qs for qemu-devel@nongnu.org; Fri, 06 Jul 2012 02:45:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sn2Ho-0000gd-4I for qemu-devel@nongnu.org; Fri, 06 Jul 2012 02:45:05 -0400 Message-ID: <4FF6896D.4070305@msgid.tls.msk.ru> Date: Fri, 06 Jul 2012 10:45:01 +0400 From: Michael Tokarev MIME-Version: 1.0 References: <1341021237-11293-1-git-send-email-akong@redhat.com> <1341021740-11426-1-git-send-email-akong@redhat.com> <4FF65090.3040402@redhat.com> In-Reply-To: <4FF65090.3040402@redhat.com> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v2] vnc: add a more descriptive error message List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Amos Kong Cc: qemu-trivial@nongnu.org, aliguori@us.ibm.com, pkrempa@redhat.com, qemu-devel@nongnu.org On 06.07.2012 06:42, Amos Kong wrote: > On 30/06/12 10:02, akong@redhat.com wrote: >> From: Amos Kong >> >> Currently qemu outputs some low-level error in qemu-sockets.c >> when failed to start vnc server. >> eg. 'getaddrinfo(127.0.0.1,5902): Name or service not known' >> >> Some libvirt users could not know what's happened with this >> unclear error message. This patch added a more descriptive >> error message. Gyus, please, pretty PLEASE stop doing things like this. Amos, your patch does TWO things. One is to clarify error message as correctly stated in your description, and second is to change the code to do exit(1) if this message is generated. So, please, a) add the second fact to the description, and b) mention why it is needed. Thanks, /mjt