mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-10 08:52:39 +01:00
Pass key to aggregate exception
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
This commit is contained in:
parent
77af6fb35d
commit
835f2afb5d
1 changed files with 5 additions and 2 deletions
|
@ -197,7 +197,7 @@ abstract class ArcanistLintEngine {
|
|||
}
|
||||
|
||||
$exceptions = array();
|
||||
foreach ($linters as $linter) {
|
||||
foreach ($linters as $linter_name => $linter) {
|
||||
try {
|
||||
$linter->setEngine($this);
|
||||
if (!$linter->canRun()) {
|
||||
|
@ -238,7 +238,10 @@ abstract class ArcanistLintEngine {
|
|||
$result->addMessage($message);
|
||||
}
|
||||
} catch (Exception $ex) {
|
||||
$exceptions[] = $ex;
|
||||
if (!is_string($linter_name)) {
|
||||
$linter_name = get_class($linter);
|
||||
}
|
||||
$exceptions[$linter_name] = $ex;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue