[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch core-updates updated: build/python: Improve error output in sanit
From: |
guix-commits |
Subject: |
branch core-updates updated: build/python: Improve error output in sanity check. |
Date: |
Sat, 15 Jan 2022 15:46:23 -0500 |
This is an automated email from the git hooks/post-receive script.
htgoebel pushed a commit to branch core-updates
in repository guix.
The following commit(s) were added to refs/heads/core-updates by this push:
new fab871ae7a build/python: Improve error output in sanity check.
fab871ae7a is described below
commit fab871ae7a51f0e705eb4cc8ffffe1a0822e259f
Author: Hartmut Goebel <h.goebel@crazy-compilers.com>
AuthorDate: Mon Dec 27 19:12:52 2021 +0100
build/python: Improve error output in sanity check.
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch core-updates updated: build/python: Improve error output in sanity check.,
guix-commits <=