fixes #888 and #889
[taxeditor.git] / taxeditor-store / src / main / java / eu / etaxonomy / taxeditor / dialogs / LoginDialog.java
index 73f0abce5758a5b3d07a4c79fadc14c045dd96cb..c7a3e041f80b41646a837d10dc7aa75b9ef72153 100644 (file)
@@ -112,12 +112,13 @@ public class LoginDialog extends Dialog {
                        CdmStore.getLoginManager().authenticate(token);                 
                }catch(BadCredentialsException e){
                        logger.error("Bad credentials", e);
-                       StoreUtil.warningDialog("Could not authenticate. Reason: Bad Credentials");
+                       StoreUtil.warningDialog("Could not authenticate. Reason: Bad Credentials.");
                }catch(LockedException e){
                        logger.error("Account is locked", e);
-                       StoreUtil.warningDialog("Could not authenticate. Reason: Account is locked");
+                       StoreUtil.warningDialog("Could not authenticate. Reason: Account is locked.");
                }catch(IllegalArgumentException e){
                        logger.error("Null argument for either user or password", e);
+                       StoreUtil.warningDialog("Could not authenticate. Reason: Username and/or Password empty.");
                }
                
                super.okPressed();