]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Improve error message for phutil missing symbols
authorepriestley <git@epriestley.com>
Thu, 7 Feb 2013 03:11:06 +0000 (19:11 -0800)
committerepriestley <git@epriestley.com>
Thu, 7 Feb 2013 03:11:06 +0000 (19:11 -0800)
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

src/lint/linter/ArcanistPhutilLibraryLinter.php

index 7b7ebe764b0b7392c4bee7a76bcdf18c4c6f1342..846e546736f134741d787965e271e178148cd036 100644 (file)
@@ -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.");
           }
         }
       }