Summary: This information may be quite useful.
Test Plan: Threw exception from license linter.
Reviewers: epriestley
Reviewed By: epriestley
CC: aran, Korvin
Differential Revision: https://secure.phabricator.com/D3764
}
$exceptions = array();
- foreach ($linters as $linter) {
+ foreach ($linters as $linter_name => $linter) {
try {
$linter->setEngine($this);
if (!$linter->canRun()) {
$result->addMessage($message);
}
} catch (Exception $ex) {
- $exceptions[] = $ex;
+ if (!is_string($linter_name)) {
+ $linter_name = get_class($linter);
+ }
+ $exceptions[$linter_name] = $ex;
}
}