Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14010990
D14745.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
807 B
Referenced Files
None
Subscribers
None
D14745.id.diff
View Options
diff --git a/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php b/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
--- a/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
+++ b/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php
@@ -334,12 +334,12 @@
$remote_uri);
}
} else if ($err) {
- throw new Exception(
- pht(
- "git fetch failed with error #%d:\nstdout:%s\n\nstderr:%s\n",
- $err,
- $stdout,
- $stderr));
+ throw new CommandException(
+ pht('Failed to fetch changes!'),
+ $future->getCommand(),
+ $err,
+ $stdout,
+ $stderr);
} else {
$retry = false;
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Nov 1, 2:59 PM (1 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6744919
Default Alt Text
D14745.id.diff (807 B)
Attached To
Mode
D14745: Throw CommandException instead of Exception after `git fetch` failure in repository updates
Attached
Detach File
Event Timeline
Log In to Comment