Page MenuHomePhabricator

D19815.id.diff
No OneTemporary

D19815.id.diff

diff --git a/src/future/exec/ExecFuture.php b/src/future/exec/ExecFuture.php
--- a/src/future/exec/ExecFuture.php
+++ b/src/future/exec/ExecFuture.php
@@ -366,8 +366,19 @@
list($err, $stdout, $stderr) = $this->resolve($timeout);
if ($err) {
$cmd = $this->command;
+
+ if ($this->getWasKilledByTimeout()) {
+ // NOTE: The timeout can be a float and PhutilNumber only handles
+ // integers, so just use "%s" to render it.
+ $message = pht(
+ 'Command killed by timeout after running for more than %s seconds.',
+ $this->terminateTimeout);
+ } else {
+ $message = pht('Command failed with error #%d!', $err);
+ }
+
throw new CommandException(
- pht('Command failed with error #%d!', $err),
+ $message,
$cmd,
$err,
$stdout,

File Metadata

Mime Type
text/plain
Expires
Sun, Aug 3, 11:28 AM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8686354
Default Alt Text
D19815.id.diff (847 B)

Event Timeline