summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-12-16 09:56:17 +0200
committerLars Wirzenius <liw@liw.fi>2019-12-16 09:56:17 +0200
commitd12eb68d5f1bf72a67ea3b0b92b5699ce026e446 (patch)
tree8f8a94986f06eaaf7b96372b40c75a2a87686f10
parent40761ef9e7597d34deebccd71c79dc0989ea046d (diff)
downloadvmdb2-d12eb68d5f1bf72a67ea3b0b92b5699ce026e446.tar.gz
Add: repr of exceptions, as a stop gap to improve error messages
I'm going to need to have a serious think about how errors in vmdb2 are handled and reported, but this should make things a little better in the short term.
-rw-r--r--vmdb/app.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/vmdb/app.py b/vmdb/app.py
index ae6ccd9..cf6fc39 100644
--- a/vmdb/app.py
+++ b/vmdb/app.py
@@ -107,11 +107,13 @@ class Vmdb2(cliapp.Application):
method(step, self.settings, state)
except KeyError as e:
vmdb.error('Key error: %s' % str(e))
+ vmdb.error(repr(e))
core_meltdown = True
if not keep_going:
break
except BaseException as e:
vmdb.error(str(e))
+ vmdb.error(repr(e))
core_meltdown = True
if not keep_going:
break