Changeset View
Changeset View
Standalone View
Standalone View
src/workflow/ArcanistInstallCertificateWorkflow.php
Context not available. | |||||
do { | do { | ||||
$token = phutil_console_prompt(pht('Paste API Token from that page:')); | $token = phutil_console_prompt(pht('Paste API Token from that page:')); | ||||
$token = trim($token); | $token = trim($token); | ||||
if (strlen($token)) { | if (@strlen($token)) { | ||||
break; | break; | ||||
} | } | ||||
} while (true); | } while (true); | ||||
if ($is_token_auth) { | if ($is_token_auth) { | ||||
if (strlen($token) != 32) { | if (@strlen($token) != 32) { | ||||
throw new ArcanistUsageException( | throw new ArcanistUsageException( | ||||
pht( | pht( | ||||
'The token "%s" is not formatted correctly. API tokens should '. | 'The token "%s" is not formatted correctly. API tokens should '. | ||||
Context not available. |
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