Summary: The main reason for this is to not exit with 1 when no paths are lintable (which is more success than failure).
Test Plan:
Returned empty array from `buildLinters()`, then:
$ arc lint
$ echo $? # 0
Reviewers: epriestley
Reviewed By: epriestley
CC: wez, aran, Korvin
Differential Revision: https://secure.phabricator.com/D4625
$config->didRunWorkflow($command, $workflow, $err);
exit((int)$err);
+} catch (ArcanistNoEffectException $ex) {
+ echo $ex->getMessage()."\n";
+
} catch (Exception $ex) {
$is_usage = ($ex instanceof ArcanistUsageException);
if ($is_usage) {
} catch (ArcanistNoEngineException $ex) {
$this->console->writeOut("No lint engine configured for this project.\n");
} catch (ArcanistNoEffectException $ex) {
- $this->console->writeOut("No paths to lint.\n");
+ $this->console->writeOut($ex->getMessage()."\n");
}
return null;
$this->console->writeOut(
"No unit test engine is configured for this project.\n");
} catch (ArcanistNoEffectException $ex) {
- $this->console->writeOut("No tests to run.\n");
+ $this->console->writeOut($ex->getMessage()."\n");
}
return null;