From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45223) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SC5Pc-0002bq-Ko for Qemu-devel@nongnu.org; Mon, 26 Mar 2012 04:36:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SC5PW-0002fY-H4 for Qemu-devel@nongnu.org; Mon, 26 Mar 2012 04:36:24 -0400 Received: from mx1.redhat.com ([209.132.183.28]:62554) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SC5PW-0002fI-9K for Qemu-devel@nongnu.org; Mon, 26 Mar 2012 04:36:18 -0400 Message-ID: <4F702B56.8030400@redhat.com> Date: Mon, 26 Mar 2012 10:39:50 +0200 From: Kevin Wolf MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Ignoring errno makes QMP errors suck List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori , Luiz Capitulino Cc: Qemu-devel@nongnu.org Hi, I keep getting reports of problems, with nice error descriptions that usually look very similar to what I produced here: {"execute":"blockdev-snapshot-sync","arguments":{"device":"ide0-hd0","snapshot-file":"/tmp/backing.qcow2"}} {"error": {"class": "OpenFileFailed", "desc": "Could not open '/tmp/backing.qcow2'", "data": {"filename": "/tmp/backing.qcow2"}}} Who can tell me what has happened here? Oh, yes, the command failed, I would have guessed that from the "error" key. But the actual error description is as useless as it gets. It doesn't tell me anything about _why_ the snapshot couldn't be created. ("Permission denied" would have been the helpful additional information in this case) How should management tools ever be able to provide a helpful error message to their users if all they get is this useless "something went wrong" error? Kevin