]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Use full message if XHPAST fails to parse the file
authorvrana <jakubv@fb.com>
Thu, 21 Feb 2013 09:44:48 +0000 (01:44 -0800)
committervrana <jakubv@fb.com>
Thu, 21 Feb 2013 17:14:49 +0000 (09:14 -0800)
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

index 61689b7aef75fc880d410f38b21b065d4d8cd0f0..0c10527e09e5606aaa7548e2e44a58c9ae16c953 100644 (file)
@@ -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];