From 5712f9c705cc9273fc28c6257189d398a4c4f11c Mon Sep 17 00:00:00 2001 From: Marc Abramowitz Date: Sat, 5 Apr 2014 09:11:03 -0700 Subject: [PATCH] Output name of ini file when it's not valid This prevents people from confusing the .ini file with .yml file, which I just did. Change-Id: I6c96b507049717b7e0ece04b4b50b30c9b6e694b --- jenkins_jobs/cmd.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jenkins_jobs/cmd.py b/jenkins_jobs/cmd.py index 761dff127..c19e4c70b 100755 --- a/jenkins_jobs/cmd.py +++ b/jenkins_jobs/cmd.py @@ -94,7 +94,8 @@ def main(): logger.debug("Not reading config for test output generation") else: raise jenkins_jobs.errors.JenkinsJobsException( - "A valid configuration file is required when not run as a test") + "A valid configuration file is required when not run as a test" + "\n{0} is not a valid .ini file".format(conf)) logger.debug("Config: {0}".format(config))