[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#52827] [PATCH] build/python: Improve error output in sanity check.
From: |
Hartmut Goebel |
Subject: |
[bug#52827] [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
- [bug#52827] [PATCH] build/python: Improve error output in sanity check.,
Hartmut Goebel <=