[LIB-13] Locale resource settings
[chesshog-scanner.git] / src / main / java / org / hedgecode / chess / scanner / ChessHogScanner.java
index 3ea995c..87037de 100644 (file)
@@ -76,13 +76,13 @@ public final class ChessHogScanner {
             hostName = new URL(url).getHost();
         } catch (MalformedURLException cause) {
             throw new ScannerException(
-                    String.format("Incorrect URL: %s", url), cause
+                    "scanner.incorrect.url", cause, url
             );
         }
         ScannerType type = ScannerType.byHost(hostName);
         if (type == null) {
             throw new ScannerException(
-                    String.format("Host %s is not among the known for the scanner", hostName)
+                    "scanner.host.unknown", hostName
             );
         }
         return scanner(type).scanUrl(url);