From: epriestley Date: Thu, 7 Feb 2013 03:11:06 +0000 (-0800) Subject: Improve error message for phutil missing symbols X-Git-Url: http://git.khamidou.com/?a=commitdiff_plain;h=2c2cb3b78ae814c4b3f9a65ef838a0ed108adb43;p=arcanist.git Improve error message for phutil missing symbols Summary: This is fairly confusing. Make the error message suggest the common remedy (update libphutil). Test Plan: Eyeballed it. Reviewers: Afaque_Hussain, btrahan, vrana Reviewed By: Afaque_Hussain CC: aran Differential Revision: https://secure.phabricator.com/D4834 --- diff --git a/src/lint/linter/ArcanistPhutilLibraryLinter.php b/src/lint/linter/ArcanistPhutilLibraryLinter.php index 7b7ebe76..846e5467 100644 --- a/src/lint/linter/ArcanistPhutilLibraryLinter.php +++ b/src/lint/linter/ArcanistPhutilLibraryLinter.php @@ -154,7 +154,9 @@ final class ArcanistPhutilLibraryLinter extends ArcanistLinter { $offset, self::LINT_UNKNOWN_SYMBOL, "Use of unknown {$type} '{$symbol}'. This symbol is not defined ". - "in any loaded phutil library."); + "in any loaded phutil library. It might be misspelled, or it ". + "may have been added recently. Make sure libphutil and other ". + "libraries are up to date."); } } }