From 2c2cb3b78ae814c4b3f9a65ef838a0ed108adb43 Mon Sep 17 00:00:00 2001 From: epriestley Date: Wed, 6 Feb 2013 19:11:06 -0800 Subject: [PATCH] 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 --- src/lint/linter/ArcanistPhutilLibraryLinter.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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."); } } } -- 2.43.0