mirror of
https://we.phorge.it/source/arcanist.git
synced 2025-01-01 10:20:58 +01:00
(stable) Promote 2016 Week 35
This commit is contained in:
commit
10e5194752
1 changed files with 9 additions and 1 deletions
|
@ -118,7 +118,15 @@ EOTEXT
|
||||||
$token));
|
$token));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strncmp($token, 'cli-', 4) !== 0) {
|
if (strncmp($token, 'api-', 4) == 0) {
|
||||||
|
echo pht(
|
||||||
|
'You are installing a standard API token, but a CLI API token '.
|
||||||
|
'was expected. If you\'re writing a script, consider passing the '.
|
||||||
|
'token at runtime with --conduit-token instead of installing it.');
|
||||||
|
if (!phutil_console_confirm(pht('Install this token anyway?'))) {
|
||||||
|
throw new ArcanistUsageException(pht('Not installing API token.'));
|
||||||
|
}
|
||||||
|
} else if (strncmp($token, 'cli-', 4) !== 0) {
|
||||||
throw new ArcanistUsageException(
|
throw new ArcanistUsageException(
|
||||||
pht(
|
pht(
|
||||||
'The token "%s" is not formatted correctly. Valid API tokens '.
|
'The token "%s" is not formatted correctly. Valid API tokens '.
|
||||||
|
|
Loading…
Reference in a new issue