From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:306:f42::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id INpAKVEEymGSWQEAgWs5BA (envelope-from ) for ; Mon, 27 Dec 2021 19:22:09 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id SJz6JVEEymHzlQAAauVa8A (envelope-from ) for ; Mon, 27 Dec 2021 19:22:09 +0100 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 7538E335D4 for ; Mon, 27 Dec 2021 19:22:09 +0100 (CET) Received: from localhost ([::1]:40464 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n1udM-0007B8-KQ for larch@yhetil.org; Mon, 27 Dec 2021 13:22:08 -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 Content-Transfer-Encoding: 8bit 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1640629329; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=+py5Ddt0nWjaHUpg0Gj0Ws8TMf+kL9C3C0/RPzyv99Y=; b=BsC5t8z48S8GiJGW1sPyg9X5tYRGQyRpf/uMxxKbdcS0NaHmWSv4KPogBExTHKy6AkYwz+ e1S+oPs3XACZoXBBzLI/vJJAGS5m4DBCc95GlFfq13BNCs8VUT5to8aVcqXD0KQn7wZcx4 JAkpdUXFP21gXm903Dtuhu66kNKxEz0f+lm9QUyd8g/l2zrp8azid4j7vom7Eno4DZnbKn NukVf/HG5XsjRdUUZAlXutlKZsKaGUEIfNHx5agRBM+NfQ2FKM+d7JqZiclpPk2UGMhiaP SC11brTpeD1GMrF7P6rNoWfAy5hq2S2Rlk8FBD1fwGByzvljXvwRviru9II5Jw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1640629329; a=rsa-sha256; cv=none; b=bi6e4w50vkptj95X01Gv6dZMJzpJZLiBTJBBIhy6ZPMtzKCIbPUwnHA0UfkcCbbp+rbudG W76k/hBOrONTgtENqjI2eoUrnUMqqtgP49NyF9pcTh7MUSA+0yId+bhsiJMKmu2ofNBiUy K7OrixPqYhSUTvnZpDWAXbiBXKJSzOR3hkhYc0EoK8oN+APRltQw1P9TJgQVIeBkHZcCqE gxdjffbsiU841Ep3P/MJdTYLEMcSR2rwlBx3EEu2KxT9vCBPEARlM2wkHjWSoBvOUE7opp x0Z9EebcVM3Te160lJNluZBRx1gt8X2BKfcNyOisvI37GkcFV+FDtvBz1XbKDA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -1.77 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 7538E335D4 X-Spam-Score: -1.77 X-Migadu-Scanner: scn1.migadu.com X-TUID: zkQ7XLc6divb 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 -- 2.30.2