1
0
mirror of https://github.com/mitb-archive/filebot synced 2024-12-24 00:38:52 -05:00

* 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

View File

@ -283,7 +283,7 @@ public final class WebServices {
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())) {
throw new IllegalArgumentException("Illegal login: " + user);
throw new IllegalArgumentException(String.format("Illegal login: %s:%s", user, password));
}
Settings settings = Settings.forPackage(WebServices.class);