Page MenuHomePhabricator

D11503.id27662.diff
No OneTemporary

D11503.id27662.diff

diff --git a/src/lint/engine/ArcanistSingleLintEngine.php b/src/lint/engine/ArcanistSingleLintEngine.php
--- a/src/lint/engine/ArcanistSingleLintEngine.php
+++ b/src/lint/engine/ArcanistSingleLintEngine.php
@@ -18,19 +18,28 @@
if (!$linter_name) {
throw new ArcanistUsageException(
- "You must configure '{$key}' with the name of a linter in order to ".
- "use ArcanistSingleLintEngine.");
+ pht(
+ "You must configure '%s' with the name of a linter ".
+ "in order to use %s.",
+ $key,
+ __CLASS__));
}
if (!class_exists($linter_name)) {
throw new ArcanistUsageException(
- "Linter '{$linter_name}' configured in '{$key}' does not exist!");
+ pht(
+ "Linter '%s' configured in '%s' does not exist!",
+ $linter_name,
+ $key));
}
if (!is_subclass_of($linter_name, 'ArcanistLinter')) {
throw new ArcanistUsageException(
- "Linter '{$linter_name}' configured in '{$key}' MUST be a subclass of ".
- "ArcanistLinter.");
+ pht(
+ "Linter `%s` configured in '%s' MUST be a subclass of `%s`.",
+ $linter_name,
+ $key,
+ 'ArcanistLinter'));
}
// Filter the affected paths.

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 13, 9:29 PM (1 w, 3 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7633275
Default Alt Text
D11503.id27662.diff (1 KB)

Event Timeline