Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F3955900
D25988.1746470954.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
805 B
Referenced Files
None
Subscribers
None
D25988.1746470954.diff
View Options
diff --git a/src/applications/transactions/conduit/TransactionSearchConduitAPIMethod.php b/src/applications/transactions/conduit/TransactionSearchConduitAPIMethod.php
--- a/src/applications/transactions/conduit/TransactionSearchConduitAPIMethod.php
+++ b/src/applications/transactions/conduit/TransactionSearchConduitAPIMethod.php
@@ -388,6 +388,14 @@
}
$object = $all_types[$object_type]->newObject();
+ if (!$object) {
+ throw new Exception(
+ pht(
+ 'In call to "transaction.search", specified "objectType" ("%s") '.
+ 'exists but is not supported. Try with a supported value like %s.',
+ $object_type,
+ '"TASK"'));
+ }
} else {
$object = id(new PhabricatorObjectQuery())
->setViewer($viewer)
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, May 5, 18:49 (49 m, 29 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1489731
Default Alt Text
D25988.1746470954.diff (805 B)
Attached To
Mode
D25988: transaction.search: add auto-generated documentation for objectType and handle unmanaged exception
Attached
Detach File
Event Timeline
Log In to Comment