aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Eggleton <paul.eggleton@linux.intel.com>2018-03-27 16:06:09 +1300
committerPaul Eggleton <paul.eggleton@linux.intel.com>2018-05-04 23:57:53 +1200
commitfb332736c60167aa88de76847efdc94de25e4c44 (patch)
treeaf4b77b079801a6b219ac1b0be4da8c34ba5b8ed
parent0947ec0a651b97a9dbd0400390e75af24167df6b (diff)
downloadopenembedded-core-contrib-fb332736c60167aa88de76847efdc94de25e4c44.tar.gz
rrs_upgrade_history: show text of any exception that blocks parsing
If an exception occurs during parsing, let's actually see what kind of exception it was in the output. Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
-rw-r--r--rrs/tools/upgrade_history_internal.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/rrs/tools/upgrade_history_internal.py b/rrs/tools/upgrade_history_internal.py
index 88ab0a71ee..0199640447 100644
--- a/rrs/tools/upgrade_history_internal.py
+++ b/rrs/tools/upgrade_history_internal.py
@@ -109,9 +109,9 @@ def _create_upgrade(recipe_data, layerbranch, ct, title, info, logger, initial=F
_save_upgrade(recipe, pv, ct, title, info, logger)
except KeyboardInterrupt:
raise
- except:
+ except Exception as e:
logger.error("%s: fail to detect upgrade (%s -> %s)" \
- " in ct %s." % (pn, prev_pv, pv, ct))
+ " in ct %s: %s" % (pn, prev_pv, pv, ct, str(e)))
"""