From 65916bfdb47c5a100b7f7a2f5f7039f44d788bc2 Mon Sep 17 00:00:00 2001 From: Angus Lees Date: Fri, 15 Jan 2016 11:11:19 +1100 Subject: [PATCH] Report actual error in error message While debugging a YAML change just now, I found it impossible to work out what jenkins-projects-checks.py was actually complaining about without this additional information. I thought others might benefit from it too. Change-Id: I79b8286a3ef74008e5b0927bddb60f9c98b9b629 --- tools/jenkins-projects-checks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tools/jenkins-projects-checks.py b/tools/jenkins-projects-checks.py index 5c05046d87..2b979c238d 100755 --- a/tools/jenkins-projects-checks.py +++ b/tools/jenkins-projects-checks.py @@ -144,6 +144,7 @@ def validate_jobs(): try: schema(entry) except Exception as e: + print("Failure: %s" % e) print("Failure in file %s" % job_file) print("Failure parsing item:") print(item)