* better error reporting when entering illegal user/passwords

This commit is contained in:
Reinhard Pointner 2015-04-06 03:33:25 +00:00
parent 61b8d67707
commit 73c5c9f206
1 changed files with 1 additions and 1 deletions

View File

@ -283,7 +283,7 @@ public final class WebServices {
public static void setLogin(String id, String user, String password) { public static void setLogin(String id, String user, String password) {
if (user == null || password == null || user.contains(":") || (user.isEmpty() && !password.isEmpty()) || (!user.isEmpty() && password.isEmpty())) { if (user == null || password == null || user.contains(":") || (user.isEmpty() && !password.isEmpty()) || (!user.isEmpty() && password.isEmpty())) {
throw new IllegalArgumentException("Illegal login: " + user); throw new IllegalArgumentException(String.format("Illegal login: %s:%s", user, password));
} }
Settings settings = Settings.forPackage(WebServices.class); Settings settings = Settings.forPackage(WebServices.class);