Revision: 7119
          
http://languagetool.svn.sourceforge.net/languagetool/?rev=7119&view=rev
Author:   dnaber
Date:     2012-05-31 15:28:24 +0000 (Thu, 31 May 2012)
Log Message:
-----------
improve exception text

Modified Paths:
--------------
    trunk/JLanguageTool/src/java/org/languagetool/Language.java

Modified: trunk/JLanguageTool/src/java/org/languagetool/Language.java
===================================================================
--- trunk/JLanguageTool/src/java/org/languagetool/Language.java 2012-05-31 
15:25:23 UTC (rev 7118)
+++ trunk/JLanguageTool/src/java/org/languagetool/Language.java 2012-05-31 
15:28:24 UTC (rev 7119)
@@ -291,7 +291,7 @@
                        return element;
                }
        }
-       throw new IllegalArgumentException("'" + shortLanguageCode + "' isn't a 
valid language code");
+       throw new IllegalArgumentException("'" + shortLanguageCode + "' is not 
a language code known to LanguageTool");
     }    
     if (shortLanguageCode.length() != "xx".length() && 
shortLanguageCode.length() != "xxx".length()) {
       throw new IllegalArgumentException("'" + shortLanguageCode + "' isn't a 
two- or three-character code");

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Languagetool-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/languagetool-cvs

Reply via email to