コード例 #1
0
 protected function resolveCall(ConduitFuture $method, $timeout = null)
 {
     try {
         return $method->resolve($timeout);
     } catch (ConduitClientException $ex) {
         if ($ex->getErrorCode() == 'ERR-CONDUIT-CALL') {
             echo phutil_console_wrap("This feature requires a newer version of Phabricator. Please " . "update it using these instructions: " . "http://www.phabricator.com/docs/phabricator/article/" . "Installation_Guide.html#updating-phabricator\n\n");
         }
         throw $ex;
     }
 }
コード例 #2
0
 protected final function resolveCall(ConduitFuture $method, $timeout = null)
 {
     try {
         return $method->resolve($timeout);
     } catch (ConduitClientException $ex) {
         if ($ex->getErrorCode() == 'ERR-CONDUIT-CALL') {
             echo phutil_console_wrap("%s\n\n", pht('This feature requires a newer version of Phabricator. Please ' . 'update it using these instructions: %s', 'https://secure.phabricator.com/book/phabricator/article/' . 'upgrading/'));
         }
         throw $ex;
     }
 }