diff --git a/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php b/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php --- a/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php +++ b/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php @@ -410,8 +410,9 @@ if (!$object) { throw new Exception( pht( - 'Cursor "%s" does not identify a valid object.', - $cursor)); + 'Cursor "%s" does not identify a valid object in query "%s".', + $cursor, + get_class($this))); } return $object;