Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15311961
D14053.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D14053.diff
View Options
diff --git a/scripts/arcanist.php b/scripts/arcanist.php
--- a/scripts/arcanist.php
+++ b/scripts/arcanist.php
@@ -620,9 +620,9 @@
throw new ArcanistUsageException($error);
} else {
fwrite(STDERR, phutil_console_wrap(
- "%s: %s\n\n",
- pht('WARNING'),
- $error));
+ phutil_console_format("%s: %s\n",
+ pht('WARNING'),
+ $error)));
}
} catch (PhutilLibraryConflictException $ex) {
if ($ex->getLibrary() != 'arcanist') {
diff --git a/src/workflow/ArcanistDiffWorkflow.php b/src/workflow/ArcanistDiffWorkflow.php
--- a/src/workflow/ArcanistDiffWorkflow.php
+++ b/src/workflow/ArcanistDiffWorkflow.php
@@ -1030,9 +1030,8 @@
} catch (ConduitClientException $e) {
if ($e->getErrorCode() == 'ERR-BAD-ARCANIST-PROJECT') {
echo phutil_console_wrap(
- "%s\n",
- pht('Lookup of encoding in arcanist project failed'),
- $e->getMessage());
+ pht('Lookup of encoding in arcanist project failed: %s',
+ $e->getMessage())."\n");
} else {
throw $e;
}
diff --git a/src/workflow/ArcanistWorkflow.php b/src/workflow/ArcanistWorkflow.php
--- a/src/workflow/ArcanistWorkflow.php
+++ b/src/workflow/ArcanistWorkflow.php
@@ -1585,12 +1585,11 @@
} catch (ConduitClientException $ex) {
if ($ex->getErrorCode() == 'ERR-CONDUIT-CALL') {
echo phutil_console_wrap(
- "%s\n\n",
pht(
'This feature requires a newer version of Phabricator. Please '.
'update it using these instructions: %s',
'https://secure.phabricator.com/book/phabricator/article/'.
- 'upgrading/'));
+ 'upgrading/')."\n\n");
}
throw $ex;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Mar 7, 12:33 PM (2 w, 20 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7332554
Default Alt Text
D14053.diff (1 KB)
Attached To
Mode
D14053: Fix callsites which called libphutil_console_wrap like it were _format
Attached
Detach File
Event Timeline
Log In to Comment