提交 98f227c2 编写于 作者: J Jesse Glick

Showing general help message rather than suggesting obsolete authentication options.

上级 0f87e10a
......@@ -53,7 +53,7 @@ public class HelpCommand extends CLICommand {
protected int run() throws Exception {
if (!Jenkins.getActiveInstance().hasPermission(Jenkins.READ)) {
throw new AccessDeniedException("You must authenticate to access this Jenkins.\n"
+ "Use --username/--password/--password-file parameters or login command.");
+ hudson.cli.client.Messages.CLI_Usage());
}
if (command != null)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册