Page MenuHomePhabricator

D19558.diff
No OneTemporary

D19558.diff

diff --git a/src/applications/diffusion/conduit/DiffusionGetRecentCommitsByPathConduitAPIMethod.php b/src/applications/diffusion/conduit/DiffusionGetRecentCommitsByPathConduitAPIMethod.php
--- a/src/applications/diffusion/conduit/DiffusionGetRecentCommitsByPathConduitAPIMethod.php
+++ b/src/applications/diffusion/conduit/DiffusionGetRecentCommitsByPathConduitAPIMethod.php
@@ -23,6 +23,12 @@
);
}
+ protected function defineErrorTypes() {
+ return array(
+ 'ERR_NOT_FOUND' => pht('Repository was not found.'),
+ );
+ }
+
protected function defineReturnType() {
return 'nonempty list<string>';
}
@@ -36,6 +42,10 @@
'branch' => $request->getValue('branch'),
));
+ if ($drequest === null) {
+ throw new ConduitException('ERR_NOT_FOUND');
+ }
+
$limit = nonempty(
$request->getValue('limit'),
self::DEFAULT_LIMIT);

File Metadata

Mime Type
text/plain
Expires
Mon, Nov 25, 6:11 PM (21 h, 12 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6786594
Default Alt Text
D19558.diff (898 B)

Event Timeline