mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-22 21:40:54 +01:00
Print --conduit-uri in install-certificate instructions
Test Plan: $ arc diff # without certificate $ arc --conduit-uri=http://phabricator.local/ diff # without certificate Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D6037
This commit is contained in:
parent
1fcf7bac4e
commit
a03c2a10ea
1 changed files with 6 additions and 1 deletions
|
@ -233,12 +233,17 @@ try {
|
|||
|
||||
if ($need_auth) {
|
||||
if (!$user_name || !$certificate) {
|
||||
$arc = 'arc';
|
||||
if ($force_conduit) {
|
||||
$arc .= csprintf(' --conduit-uri=%s', $conduit_uri);
|
||||
}
|
||||
|
||||
throw new ArcanistUsageException(
|
||||
phutil_console_format(
|
||||
"YOU NEED TO __INSTALL A CERTIFICATE__ TO LOGIN TO PHABRICATOR\n\n".
|
||||
"You are trying to connect to '{$conduit_uri}' but do not have ".
|
||||
"a certificate installed for this host. Run:\n\n".
|
||||
" $ **arc install-certificate**\n\n".
|
||||
" $ **{$arc} install-certificate**\n\n".
|
||||
"...to install one."));
|
||||
}
|
||||
$workflow->authenticateConduit();
|
||||
|
|
Loading…
Reference in a new issue