X-Git-Url: https://code.wpia.club/?p=gigi.git;a=blobdiff_plain;f=util%2Forg%2Fcacert%2Fgigi%2Futil%2FFetchLocales.java;fp=util%2Forg%2Fcacert%2Fgigi%2Futil%2FFetchLocales.java;h=21a789f3342c8757f03e95d047123841ad744f6d;hp=87beaacef16fa53275f2771e2e60a96f44f7fe05;hb=575b68a79c66f34a6f7dfc2c0c361df5ec35684e;hpb=2c9862e7f7b29dfd244bfbbd8b18943e13e71067 diff --git a/util/org/cacert/gigi/util/FetchLocales.java b/util/org/cacert/gigi/util/FetchLocales.java index 87beaace..21a789f3 100644 --- a/util/org/cacert/gigi/util/FetchLocales.java +++ b/util/org/cacert/gigi/util/FetchLocales.java @@ -35,7 +35,9 @@ public class FetchLocales { public static void main(String[] args) throws IOException, ParserConfigurationException, TransformerException { System.out.println("downloading locales ..."); File locale = new File("locale"); - locale.mkdir(); + if ( !locale.mkdir()) { + throw new IOException("Could not create locales directory."); + } DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance(); DocumentBuilder db = dbf.newDocumentBuilder();