Skip to content

Commit

Permalink
Minor fix: Improved warning message
Browse files Browse the repository at this point in the history
  • Loading branch information
Giovanni Toraldo committed Dec 22, 2014
1 parent 2726e6d commit 487b69f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/com/xebialabs/overthere/ssh/SshConnection.java
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,8 @@ protected void connect() {

if (!onlyOneNotNull(privateKey, privateKeyFile, password))
{
logger.warn("You should only set one connection options between: privateKey, privateKeyFile, password. They are evaluated in this order, and latter would have no effect on the connection.");
String[] vars = { PRIVATE_KEY, PRIVATE_KEY_FILE, PASSWORD };
logger.warn("You should only set one connection options between: {}, {}, {}. They are evaluated in this order, and latter would have no effect on the connection.", vars);
}

KeyProvider keys;
Expand Down

0 comments on commit 487b69f

Please sign in to comment.