* [bug#52827] [PATCH] build/python: Improve error output in sanity check.
@ 2021-12-27 18:21 Hartmut Goebel
2021-12-27 20:14 ` Hartmut Goebel
0 siblings, 1 reply; 5+ messages in thread
From: Hartmut Goebel @ 2021-12-27 18:21 UTC (permalink / raw)
To: 52827
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
^ permalink raw reply related [flat|nested] 5+ messages in thread
* [bug#52827] [PATCH] build/python: Improve error output in sanity check.
2021-12-27 18:21 [bug#52827] [PATCH] build/python: Improve error output in sanity check Hartmut Goebel
@ 2021-12-27 20:14 ` Hartmut Goebel
2021-12-28 13:37 ` Lars-Dominik Braun
0 siblings, 1 reply; 5+ messages in thread
From: Hartmut Goebel @ 2021-12-27 20:14 UTC (permalink / raw)
To: 52827; +Cc: Lars-Dominik Braun
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@crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#52827] [PATCH] build/python: Improve error output in sanity check.
2021-12-27 20:14 ` Hartmut Goebel
@ 2021-12-28 13:37 ` Lars-Dominik Braun
2021-12-28 13:56 ` Hartmut Goebel
0 siblings, 1 reply; 5+ messages in thread
From: Lars-Dominik Braun @ 2021-12-28 13:37 UTC (permalink / raw)
To: Hartmut Goebel; +Cc: 52827
Hi Hartmut,
the change is trivial and looks good to me.
Do we have a package that currently fails with an exception?
Cheers,
Lars
^ permalink raw reply [flat|nested] 5+ messages in thread
* [bug#52827] [PATCH] build/python: Improve error output in sanity check.
2021-12-28 13:37 ` Lars-Dominik Braun
@ 2021-12-28 13:56 ` Hartmut Goebel
2022-01-15 20:43 ` bug#52827: " Hartmut Goebel
0 siblings, 1 reply; 5+ messages in thread
From: Hartmut Goebel @ 2021-12-28 13:56 UTC (permalink / raw)
To: Lars-Dominik Braun; +Cc: 52827
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@crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
^ permalink raw reply [flat|nested] 5+ messages in thread
* bug#52827: [PATCH] build/python: Improve error output in sanity check.
2021-12-28 13:56 ` Hartmut Goebel
@ 2022-01-15 20:43 ` Hartmut Goebel
0 siblings, 0 replies; 5+ messages in thread
From: Hartmut Goebel @ 2022-01-15 20:43 UTC (permalink / raw)
To: 52827-close; +Cc: Lars-Dominik Braun
Pushed to core-updates as fab871ae7a51f0e705eb4cc8ffffe1a0822e259f
--
Regards
Hartmut Goebel
| Hartmut Goebel | h.goebel@crazy-compilers.com |
| www.crazy-compilers.com | compilers which you thought are impossible |
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2022-01-15 20:44 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-27 18:21 [bug#52827] [PATCH] build/python: Improve error output in sanity check Hartmut Goebel
2021-12-27 20:14 ` Hartmut Goebel
2021-12-28 13:37 ` Lars-Dominik Braun
2021-12-28 13:56 ` Hartmut Goebel
2022-01-15 20:43 ` bug#52827: " Hartmut Goebel
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.