1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-22 06:42:42 +01:00

Fix an error message when calling "transaction.search" with a non-transactional object PHID as an "objectIdentifier"

Summary: See PHI1499. This error message doesn't provide parameters, and can be a little bit more helpful.

Test Plan: {F6957550}

Differential Revision: https://secure.phabricator.com/D20859
This commit is contained in:
epriestley 2019-10-17 09:14:21 -07:00
parent 5dafabd5b4
commit d34dfa3746

View file

@ -103,8 +103,11 @@ EOREMARKUP
if (!($object instanceof PhabricatorApplicationTransactionInterface)) {
throw new Exception(
pht(
'Object "%s" does not implement "%s", so transactions can not '.
'be loaded for it.'));
'Object "%s" (of type "%s") does not implement "%s", so '.
'transactions can not be loaded for it.',
$object_name,
get_class($object),
'PhabricatorApplicationTransactionInterface'));
}
$xaction_query = PhabricatorApplicationTransactionQuery::newQueryForObject(