From patchwork Mon Dec 27 18:21:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hartmut Goebel X-Patchwork-Id: 35710 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id BFD2227BBEA; Mon, 27 Dec 2021 18:22:08 +0000 (GMT) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 944B827BBE9 for ; Mon, 27 Dec 2021 18:22:08 +0000 (GMT) Received: from localhost ([::1]:40464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1udL-0007B8-Ps for patchwork@mira.cbaines.net; Mon, 27 Dec 2021 13:22:07 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51368) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1udG-0007Az-7X for guix-patches@gnu.org; Mon, 27 Dec 2021 13:22:02 -0500 Received: from debbugs.gnu.org ([209.51.188.43]:60934) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1n1udF-0004AH-Ub for guix-patches@gnu.org; Mon, 27 Dec 2021 13:22:01 -0500 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1n1udF-00045c-S1 for guix-patches@gnu.org; Mon, 27 Dec 2021 13:22:01 -0500 X-Loop: help-debbugs@gnu.org Subject: [bug#52827] [PATCH] build/python: Improve error output in sanity check. Resent-From: Hartmut Goebel Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 27 Dec 2021 18:22:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52827 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 52827@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.164062928715659 (code B ref -1); Mon, 27 Dec 2021 18:22:01 +0000 Received: (at submit) by debbugs.gnu.org; 27 Dec 2021 18:21:27 +0000 Received: from localhost ([127.0.0.1]:44247 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1uch-00044U-0C for submit@debbugs.gnu.org; Mon, 27 Dec 2021 13:21:27 -0500 Received: from lists.gnu.org ([209.51.188.17]:42122) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n1ucd-00044H-Su for submit@debbugs.gnu.org; Mon, 27 Dec 2021 13:21:24 -0500 Received: from eggs.gnu.org ([209.51.188.92]:51292) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1ucd-00079H-O4 for guix-patches@gnu.org; Mon, 27 Dec 2021 13:21:23 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:46953) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n1ucb-00047J-UE for guix-patches@gnu.org; Mon, 27 Dec 2021 13:21:23 -0500 Received: from hermia.goebel-consult.de ([87.176.128.206]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MKbPg-1mjHpy0LnQ-00Kvao for ; Mon, 27 Dec 2021 19:21:18 +0100 Received: from lenashee.fritz.box (lenashee.goebel-consult.de [192.168.110.2]) by hermia.goebel-consult.de (Postfix) with ESMTP id 958E25F53C; Mon, 27 Dec 2021 19:21:25 +0100 (CET) From: Hartmut Goebel Date: Mon, 27 Dec 2021 19:21:16 +0100 Message-Id: X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 X-Provags-ID: V03:K1:Eg7jLLzNgqWnZy7J29Nql31hZ03y0yXwFwYq1+C804TpXvZ6lSA Xt2DQ1heG62opVT+qPVDaSYhEhqGKOVgPfMJpV+q1GcgGJV8u9TbwRb7/h5qwd0HAYIy4PA B/MdS0eNOtRDipwYwlPoPzyon9QUh8BP/lUFLbp8v/lNkCHbC7pTCewQ3+dnjTIty/gr+If rE6/niJ0xDZyXMzQYJfeA== X-UI-Out-Filterresults: notjunk:1;V03:K0:lWVQhtK6/ls=:ys/K2u3aJ1Yfy2KRNviwp5 57NQJMi4/i8krG5dpnbiTEZ8TdTJTgbHCTZlIRtz2P2l3f6dG7pyt+vaREVHdZuBEhID59nnj aX+W3RsBMq2UrhRV4+Y/AYRyso9LfmZN2GYeMG2kCRLUbcRFg9RrTEl594sxm7LdaxRQOOBOW x50bHPcjBFekJT7mtivxm/Z2jNLT7d2KX17bpmF9qucxzwH6EZka5CWPN5ZO98ZWdF84iEuU7 gztJYYdo6S0zkyxTkCCrovl2lnehM7myyw1J5QnqvzzPwlQ8FdU3QJQ007P5dJqQoiu544b05 6z2GMEGnkkKkHGvVb1BjqezyLct62RYGgXJdQX/z2yiKE78lij4g3OWNQxwV3A+Av/GIk176v 8bGyZ6He/ibvw6eScxmDZs1bNKeordxVTetwe6D9qvb0XtcMZPhcEbqt+j5AWzkkznSemPy+l YGriYJmPc14Imeq05W/N1PYrEIg9hF3zH179+rOQ0/SWm7RlkwFhJTpkeRMP0590JLi9w7Fxo /1cFXUEIS29EvFvGOntUjka4VI/61tWJfvJQJ1ZMuu/wSJaOYrnDKhGB8LqDt1gJatYinDBQV OLQKMY9MddL/nNAhHc8PALhEgcsmAq9TBOhFCmCCCQiKnMErOLLoSgZNXELy7wpP/koh4Zkmi v+ytj5aZNZA2Dp+wY1DU2BT0f//EUr9dB25mtLoF3FqsKIrx5MsFJuYI0itjKenVcHMP2g4pM ayxXxDfQJR3d6u7W Received-SPF: none client-ip=212.227.126.187; envelope-from=h.goebel@crazy-compilers.com; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches Instead of printing the "str()" representation of the excaption, print the "repr()" representation. This will print the name of the exception and thus ease understanding the actual error. --- gnu/packages/aux-files/python/sanity-check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gnu/packages/aux-files/python/sanity-check.py b/gnu/packages/aux-files/python/sanity-check.py index a84f8f03c0..182133bb3d 100644 --- a/gnu/packages/aux-files/python/sanity-check.py +++ b/gnu/packages/aux-files/python/sanity-check.py @@ -44,7 +44,7 @@ for dist in ws: pkg_resources.require(req) print('OK') except Exception as e: - print('ERROR:', req, e) + print('ERROR:', req, repr(e)) ret = 1 continue