Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conduit/method/ConduitConnectConduitAPIMethod.php
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | switch ($client) { | ||||
); | ); | ||||
if (empty($supported_versions[$client_version])) { | if (empty($supported_versions[$client_version])) { | ||||
if ($server_version < $client_version) { | if ($server_version < $client_version) { | ||||
$ex = new ConduitException('ERR-BAD-VERSION'); | $ex = new ConduitException('ERR-BAD-VERSION'); | ||||
$ex->setErrorDescription( | $ex->setErrorDescription( | ||||
pht( | pht( | ||||
"Your '%s' client version is '%d', which is newer than the ". | "Your '%s' client version is '%d', which is newer than the ". | ||||
"server version, '%d'. Upgrade your Phabricator install.", | "server version, '%d'. Upgrade your server.", | ||||
'arc', | 'arc', | ||||
$client_version, | $client_version, | ||||
$server_version)); | $server_version)); | ||||
} else { | } else { | ||||
$ex = new ConduitException('NEW-ARC-VERSION'); | $ex = new ConduitException('NEW-ARC-VERSION'); | ||||
$ex->setErrorDescription( | $ex->setErrorDescription( | ||||
pht( | pht( | ||||
'A new version of arc is available! You need to upgrade '. | 'A new version of arc is available! You need to upgrade '. | ||||
▲ Show 20 Lines • Show All 64 Lines • Show Last 20 Lines |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0