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:
parent
61b8d67707
commit
73c5c9f206
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user