提交 a5c87c3d 编写于 作者: K Kohsuke Kawaguchi

if the -i option is given, failure to authenticate should cause the CLI to fail.

上级 65eb334f
......@@ -263,6 +263,11 @@ public class CLI {
return -1;
}
} catch (GeneralSecurityException e) {
if (sshAuthRequestedExplicitly) {
System.err.println(e.getMessage());
LOGGER.log(FINE,e.getMessage(),e);
return -1;
}
System.err.println("Failed to authenticate with your SSH keys. Proceeding with anonymous access");
LOGGER.log(FINE,"Failed to authenticate with your SSH keys. Proceeding with anonymous access",e);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册