GNU bug report logs - #52827
[PATCH] build/python: Improve error output in sanity check.

Previous Next

Package: guix-patches;

Reported by: Hartmut Goebel <h.goebel <at> crazy-compilers.com>

Date: Mon, 27 Dec 2021 18:22:01 UTC

Severity: normal

Tags: patch

Done: Hartmut Goebel <h.goebel <at> crazy-compilers.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 52827 in the body.
You can then email your comments to 52827 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#52827; Package guix-patches. (Mon, 27 Dec 2021 18:22:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Hartmut Goebel <h.goebel <at> crazy-compilers.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 27 Dec 2021 18:22:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
To: guix-patches <at> gnu.org
Subject: [PATCH] build/python: Improve error output in sanity check.
Date: Mon, 27 Dec 2021 19:21:16 +0100
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





Information forwarded to guix-patches <at> gnu.org:
bug#52827; Package guix-patches. (Mon, 27 Dec 2021 20:15:02 GMT) Full text and rfc822 format available.

Message #8 received at 52827 <at> debbugs.gnu.org (full text, mbox):

From: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
To: 52827 <at> debbugs.gnu.org
Cc: Lars-Dominik Braun <lars <at> 6xq.net>
Subject: Re: [PATCH] build/python: Improve error output in sanity check.
Date: Mon, 27 Dec 2021 21:14:42 +0100
Of course, this needs to go to core-updates.

Pinging @Lars-Dominik: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=52827

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel <at> crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |





Information forwarded to guix-patches <at> gnu.org:
bug#52827; Package guix-patches. (Tue, 28 Dec 2021 13:39:01 GMT) Full text and rfc822 format available.

Message #11 received at 52827 <at> debbugs.gnu.org (full text, mbox):

From: Lars-Dominik Braun <lars <at> 6xq.net>
To: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
Cc: 52827 <at> debbugs.gnu.org
Subject: Re: [PATCH] build/python: Improve error output in sanity check.
Date: Tue, 28 Dec 2021 14:37:53 +0100
Hi Hartmut,

the change is trivial and looks good to me.

Do we have a package that currently fails with an exception?

Cheers,
Lars





Information forwarded to guix-patches <at> gnu.org:
bug#52827; Package guix-patches. (Tue, 28 Dec 2021 13:57:02 GMT) Full text and rfc822 format available.

Message #14 received at 52827 <at> debbugs.gnu.org (full text, mbox):

From: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
To: Lars-Dominik Braun <lars <at> 6xq.net>
Cc: 52827 <at> debbugs.gnu.org
Subject: Re: [PATCH] build/python: Improve error output in sanity check.
Date: Tue, 28 Dec 2021 14:56:24 +0100
Am 28.12.21 um 14:37 schrieb Lars-Dominik Braun:
> Do we have a package that currently fails with an exception?

Not currently. But you could test the effect with trytond-party 
@6dffced09ecda024e0884e352778c221ad066fd6 (merge core-update frozen).

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel <at> crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |





Reply sent to Hartmut Goebel <h.goebel <at> crazy-compilers.com>:
You have taken responsibility. (Sat, 15 Jan 2022 20:44:01 GMT) Full text and rfc822 format available.

Notification sent to Hartmut Goebel <h.goebel <at> crazy-compilers.com>:
bug acknowledged by developer. (Sat, 15 Jan 2022 20:44:01 GMT) Full text and rfc822 format available.

Message #19 received at 52827-close <at> debbugs.gnu.org (full text, mbox):

From: Hartmut Goebel <h.goebel <at> crazy-compilers.com>
To: 52827-close <at> debbugs.gnu.org
Cc: Lars-Dominik Braun <lars <at> 6xq.net>
Subject: Re: [PATCH] build/python: Improve error output in sanity check.
Date: Sat, 15 Jan 2022 21:43:39 +0100
Pushed to core-updates as fab871ae7a51f0e705eb4cc8ffffe1a0822e259f

-- 
Regards
Hartmut Goebel

| Hartmut Goebel          | h.goebel <at> crazy-compilers.com               |
| www.crazy-compilers.com | compilers which you thought are impossible |





bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sun, 13 Feb 2022 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 2 years and 84 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.