From: epriestley Date: Thu, 13 Jan 2011 23:36:15 +0000 (-0800) Subject: Clarify confusing error message about missing .arcconfig vs missing conduit. X-Git-Tag: conduit-4~435 X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=68dee48bf4e6e73e572049cb2d3eaf6a1270a47e;p=arcanist.git Clarify confusing error message about missing .arcconfig vs missing conduit. Summary: Test Plan: Reviewers: CC: --- diff --git a/scripts/arcanist.php b/scripts/arcanist.php index b838da1d..7d65b6b8 100755 --- a/scripts/arcanist.php +++ b/scripts/arcanist.php @@ -97,6 +97,12 @@ try { $need_repository_api; if ($need_working_copy) { + if (!$working_copy->getProjectRoot()) { + throw new ArcanistUsageException( + "There is no '.arcconfig' file in this directory or any parent ". + "directory. Create a '.arcconfig' file to configure this project ". + "for use with Arcanist."); + } $workflow->setWorkingCopy($working_copy); }