From: Aleksey Maksimov Date: Sat, 23 Nov 2013 09:29:12 +0000 (+0800) Subject: Fix: error message was not giving job name X-Git-Tag: v0.2.23~59^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63a7064e4c9fedac8288238a5fa07f38cbd81420;p=tools%2Fpython-jenkinsapi.git Fix: error message was not giving job name --- diff --git a/jenkinsapi/views.py b/jenkinsapi/views.py index f48eb6d..52e3375 100644 --- a/jenkinsapi/views.py +++ b/jenkinsapi/views.py @@ -41,7 +41,7 @@ class Views(object): if not new_view.add_job(job_name): # Something wrong - delete view del self[new_view] - raise TypeError('Job %s does not exist in Jenkins') + raise TypeError('Job %s does not exist in Jenkins' % job_name) def __getitem__(self, view_name): for row in self.jenkins._data.get('views', []):