From: vrana Date: Thu, 21 Feb 2013 09:44:48 +0000 (-0800) Subject: Use full message if XHPAST fails to parse the file X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=5e7a458053b1bd2bb05a0e35d28000c5d81fd1b3;p=arcanist.git 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 --- diff --git a/src/lint/linter/ArcanistXHPASTLinter.php b/src/lint/linter/ArcanistXHPASTLinter.php index 61689b7a..0c10527e 100644 --- a/src/lint/linter/ArcanistXHPASTLinter.php +++ b/src/lint/linter/ArcanistXHPASTLinter.php @@ -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];