mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-25 16:22:42 +01:00
Point certificate documentation at "arc install-certificate".
This commit is contained in:
parent
d73179ea99
commit
63e7ddc12d
1 changed files with 6 additions and 16 deletions
|
@ -197,26 +197,16 @@ try {
|
||||||
} catch (ConduitClientException $ex) {
|
} catch (ConduitClientException $ex) {
|
||||||
if ($ex->getErrorCode() == 'ERR-NO-CERTIFICATE') {
|
if ($ex->getErrorCode() == 'ERR-NO-CERTIFICATE') {
|
||||||
$message =
|
$message =
|
||||||
"\n\n".
|
"\n".
|
||||||
phutil_console_format(
|
phutil_console_format(
|
||||||
"YOU NEED TO __INSTALL A CERTIFICATE__ TO LOGIN TO PHABRICATOR").
|
"YOU NEED TO __INSTALL A CERTIFICATE__ TO LOGIN TO PHABRICATOR").
|
||||||
"\n\n".
|
"\n\n".
|
||||||
"The server '{$conduit_uri}' rejected your request:".
|
phutil_console_format(
|
||||||
|
" To do this, run: **arc install-certificate**").
|
||||||
"\n\n".
|
"\n\n".
|
||||||
$ex->getMessage().
|
"The server '{$conduit_uri}' rejected your request:".
|
||||||
"\n\n";
|
"\n".
|
||||||
$hosts_with_cert = ifilter($hosts_config, 'cert');
|
$ex->getMessage();
|
||||||
if (!empty($hosts_with_cert)) {
|
|
||||||
if (count($hosts_with_cert) == 1) {
|
|
||||||
$message .=
|
|
||||||
"You currently have a certificate installed for one host:\n\n";
|
|
||||||
} else {
|
|
||||||
$message .=
|
|
||||||
"You currently have certificates installed for these hosts:\n\n";
|
|
||||||
}
|
|
||||||
$message .= ' '.implode("\n ", array_keys($hosts_with_cert));
|
|
||||||
$message .= "\n";
|
|
||||||
}
|
|
||||||
throw new ArcanistUsageException($message);
|
throw new ArcanistUsageException($message);
|
||||||
} else {
|
} else {
|
||||||
throw $ex;
|
throw $ex;
|
||||||
|
|
Loading…
Reference in a new issue