Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F15336930
D13043.id31471.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
D13043.id31471.diff
View Options
diff --git a/scripts/arcanist.php b/scripts/arcanist.php
--- a/scripts/arcanist.php
+++ b/scripts/arcanist.php
@@ -394,10 +394,10 @@
} catch (Exception $ex) {
$is_usage = ($ex instanceof ArcanistUsageException);
if ($is_usage) {
- echo phutil_console_format(
+ fwrite(STDERR, phutil_console_format(
"**%s** %s\n",
pht('Usage Exception:'),
- $ex->getMessage());
+ $ex->getMessage()));
}
if ($config) {
@@ -405,15 +405,15 @@
}
if ($config_trace_mode) {
- echo "\n";
+ fwrite(STDERR, "\n");
throw $ex;
}
if (!$is_usage) {
- echo phutil_console_format("**%s**\n", pht('Exception'));
+ fwrite(STDERR, phutil_console_format("**%s**\n", pht('Exception')));
while ($ex) {
- echo $ex->getMessage()."\n";
+ fwrite(STDERR, $ex->getMessage()."\n");
if ($ex instanceof PhutilProxyException) {
$ex = $ex->getPreviousException();
@@ -422,9 +422,9 @@
}
}
- echo phutil_console_format(
+ echo fwrite(STDERR, phutil_console_format(
"(%s)\n",
- pht('Run with `%s` for a full exception trace.', '--trace'));
+ pht('Run with `%s` for a full exception trace.', '--trace')));
}
exit(1);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 10, 3:31 AM (1 w, 6 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7394308
Default Alt Text
D13043.id31471.diff (1 KB)
Attached To
Mode
D13043: Send arcanist error output to STDERR
Attached
Detach File
Event Timeline
Log In to Comment