aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTibor Frank <tifrank@cisco.com>2020-09-21 06:36:34 +0200
committerTibor Frank <tifrank@cisco.com>2020-09-21 04:38:02 +0000
commit29fdf3c9dfaa677ebd6f5c262668c159732a1401 (patch)
tree33594301832e3bd93db141d8bcb5c4fd55c252f0
parentf34ece10487d331407621c758dc6fb303f5bd8e6 (diff)
PAL: Dislpay job name in err msg
Change-Id: I008d14bf1f72bcdc9b6bcb478ae851de03a176e0 Signed-off-by: Tibor Frank <tifrank@cisco.com> (cherry picked from commit 28b09d77b497685553d28ad7b0a98f08e89b7f7f)
-rw-r--r--resources/tools/presentation/specification_parser.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/resources/tools/presentation/specification_parser.py b/resources/tools/presentation/specification_parser.py
index 0199796abd..5a88a7ba0d 100644
--- a/resources/tools/presentation/specification_parser.py
+++ b/resources/tools/presentation/specification_parser.py
@@ -307,8 +307,9 @@ class Specification:
else:
raise PresentationError(f"Not supported build type: {build_type}")
if ret_code != 0:
- raise PresentationError(u"Not possible to get the number of the "
- u"build number.")
+ raise PresentationError(
+ f"Not possible to get the build number of {job}."
+ )
try:
build_nr = int(build_nr)
return build_nr