From d1a2b494351f68e8ae133cfaef3d14728233be45 Mon Sep 17 00:00:00 2001 From: Michael DeHaan Date: Thu, 11 Jul 2013 17:38:23 -0400 Subject: [PATCH] Explain where project file needs to be if it is not present. --- awx/main/tasks.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/awx/main/tasks.py b/awx/main/tasks.py index dc84f261d8..97bdba6089 100644 --- a/awx/main/tasks.py +++ b/awx/main/tasks.py @@ -200,9 +200,10 @@ class RunJob(Task): kwargs['passwords'] = self.build_passwords(job, **kwargs) args = self.build_args(job, **kwargs) cwd = job.project.get_project_path() + root = settings.PROJECTS_ROOT if not cwd: - raise RuntimeError('project local_path %s cannot be found' % - job.project.local_path) + raise RuntimeError('project local_path %s cannot be found in %s' % + (job.project.local_path, root)) env = self.build_env(job, **kwargs) job = self.update_job(job_pk, job_args=args, job_cwd=cwd, job_env=env)