Page MenuHomePhabricator

D17325.diff
No OneTemporary

D17325.diff

diff --git a/src/workflow/ArcanistWorkflow.php b/src/workflow/ArcanistWorkflow.php
--- a/src/workflow/ArcanistWorkflow.php
+++ b/src/workflow/ArcanistWorkflow.php
@@ -1196,6 +1196,14 @@
$future = $conduit->callMethod('differential.querydiffs', $params);
$diff = head($future->resolve());
+ if ($diff == null) {
+ throw new Exception(
+ phutil_console_wrap(
+ pht("The diff or revision you specified is either invalid or you ".
+ "don't have permission to view it."))
+ );
+ }
+
$changes = array();
foreach ($diff['changes'] as $changedict) {
$changes[] = ArcanistDiffChange::newFromDictionary($changedict);

File Metadata

Mime Type
text/plain
Expires
Thu, Mar 27, 10:51 AM (2 w, 5 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7578048
Default Alt Text
D17325.diff (678 B)

Event Timeline