Received: from eggs.gnu.org ([2001:4830:134:3::10]:51155) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUzP3-00009N-IA for qemu-devel@nongnu.org; Tue, 01 Apr 2014 10:11:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WUzOx-0000UH-6E for qemu-devel@nongnu.org; Tue, 01 Apr 2014 10:11:01 -0400 Received: from roura.ac.upc.es ([147.83.33.10]:39619) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WUzOw-0000Tn-QI for qemu-devel@nongnu.org; Tue, 01 Apr 2014 10:10:55 -0400 From: =?utf-8?b?TGx1w61z?= Vilanova Date: Tue, 1 Apr 2014 16:10:53 +0200 Message-Id: <20140401141053.15554.50528.stgit@fimbulvetr.bsc.es> In-Reply-To: <20140401141041.15554.76350.stgit@fimbulvetr.bsc.es> References: <20140401141041.15554.76350.stgit@fimbulvetr.bsc.es> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v7 2/4] qapi: [trivial] Show full exception message in "test-qapi.py" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: =?UTF-8?q?Beno=C3=AEt=20Canet?= , Markus Armbruster , Luiz Capitulino Signed-off-by: Llu=C3=ADs Vilanova --- tests/qapi-schema/test-qapi.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/qapi-schema/test-qapi.py b/tests/qapi-schema/test-qapi= .py index b3d1e1d..ac6da13 100644 --- a/tests/qapi-schema/test-qapi.py +++ b/tests/qapi-schema/test-qapi.py @@ -18,8 +18,8 @@ try: exprs =3D parse_schema(sys.stdin) except SystemExit: raise -except: - print >>sys.stderr, "Crashed:", sys.exc_info()[0] +except Exception, e: + print >>sys.stderr, "Crashed:", str(e) exit(1) =20 pprint(exprs)