[elbe-devel] [PATCH] elbeproject: show error message when mark_install() fails
John Ogness
john.ogness at linutronix.de
Wed Feb 27 15:51:07 CET 2019
If get_rpcaptcache().mark_install fails, a nearly generic message
is printed. Make that message useful by showing the exception
string.
Signed-off-by: John Ogness <john.ogness at linutronix.de>
---
elbepack/elbeproject.py | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/elbepack/elbeproject.py b/elbepack/elbeproject.py
index cef53296..ccdf9729 100644
--- a/elbepack/elbeproject.py
+++ b/elbepack/elbeproject.py
@@ -875,8 +875,8 @@ class ElbeProject (object):
self.get_rpcaptcache(env=target).mark_install(p, None)
except KeyError:
self.log.printo("No Package " + p)
- except SystemError:
- self.log.printo("Unable to correct problems " + p)
+ except SystemError as e:
+ self.log.printo("Error: Unable to correct problems in package %s (%s)" % (p, str(e)))
# temporary disabled because of
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=776057
--
2.19.0
More information about the elbe-devel
mailing list