From 5e7a458053b1bd2bb05a0e35d28000c5d81fd1b3 Mon Sep 17 00:00:00 2001 From: vrana Date: Thu, 21 Feb 2013 01:44:48 -0800 Subject: [PATCH] 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 --- src/lint/linter/ArcanistXHPASTLinter.php | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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]; -- 2.43.0