Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NCbZS-0003Mi-FU for qemu-devel@nongnu.org; Mon, 23 Nov 2009 11:15:22 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NCbZN-0003Jt-6T for qemu-devel@nongnu.org; Mon, 23 Nov 2009 11:15:21 -0500 Received: from [199.232.76.173] (port=55566 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NCbZN-0003Jn-1w for qemu-devel@nongnu.org; Mon, 23 Nov 2009 11:15:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:21512) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NCbZM-00045u-MF for qemu-devel@nongnu.org; Mon, 23 Nov 2009 11:15:16 -0500 Received: from int-mx05.intmail.prod.int.phx2.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.18]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id nANGFFOu026351 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 23 Nov 2009 11:15:16 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH 00/10]: QError v4 References: <1258487037-24950-1-git-send-email-lcapitulino@redhat.com> <4B04383A.9050101@linux.vnet.ibm.com> <4B06C00F.3020107@codemonkey.ws> <4B06E854.7080101@codemonkey.ws> <20091123104213.4b7f61f0@doriath> Date: Mon, 23 Nov 2009 17:15:13 +0100 In-Reply-To: <20091123104213.4b7f61f0@doriath> (Luiz Capitulino's message of "Mon, 23 Nov 2009 10:42:13 -0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: qemu-devel@nongnu.org, kraxel@redhat.com Luiz Capitulino writes: > On Sat, 21 Nov 2009 11:02:41 +0100 > Markus Armbruster wrote: > >> Now, what should a client do when it discovers the monitor command it >> needs to use has grown a new error? Refuse to use the command for fear >> of having to present a sub-par error message to the user in case it >> fails? > > What's your solution for this problem? > >> Yes, the client needs updating in such a scenario. But since it's a >> normal, expected situation, I wouldn't call it a client bug. And >> regardless how we call it, we better handle it gracefully. > > The best thing the client can do here is to print the error class. In my opinion, the best such a client can do to report such an error to a human user is to show the (localized) error class (assuming it knows *that*, which is not a given), plus the (not localized) human-readable message the server sent along with the unknown error code. I'd expect the latter part to be more useful in practice than the former.