mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-26 00:32:41 +01:00
Use full message if XHPAST fails to parse the file
Summary: The message is too defensive. Test Plan: Tested in the fork. Reviewers: epriestley, nh Reviewed By: epriestley CC: aran, Korvin, s.o.butler Differential Revision: https://secure.phabricator.com/D5043
This commit is contained in:
parent
df013f6282
commit
5e7a458053
1 changed files with 1 additions and 5 deletions
|
@ -153,11 +153,7 @@ final class ArcanistXHPASTLinter extends ArcanistBaseXHPASTLinter {
|
|||
self::LINT_PHP_SYNTAX_ERROR,
|
||||
'This file contains a syntax error: '.$ex->getMessage());
|
||||
} catch (Exception $ex) {
|
||||
$this->raiseLintAtPath(
|
||||
self::LINT_UNABLE_TO_PARSE,
|
||||
'XHPAST could not parse this file, probably because the AST is too '.
|
||||
'deep. Some lint issues may not have been detected. You may safely '.
|
||||
'ignore this warning.');
|
||||
$this->raiseLintAtPath(self::LINT_UNABLE_TO_PARSE, $ex->getMessage());
|
||||
}
|
||||
}
|
||||
return $this->trees[$path];
|
||||
|
|
Loading…
Reference in a new issue