diff options
-rw-r--r-- | src/main/java/fr/umlv/java/wallj/Main.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/fr/umlv/java/wallj/Main.java b/src/main/java/fr/umlv/java/wallj/Main.java index 4f35aab..3b3ad54 100644 --- a/src/main/java/fr/umlv/java/wallj/Main.java +++ b/src/main/java/fr/umlv/java/wallj/Main.java | |||
@@ -41,11 +41,11 @@ public class Main { | |||
41 | Viewer viewer = new Viewer(boards); | 41 | Viewer viewer = new Viewer(boards); |
42 | Application.run(Color.BLACK, viewer::eventLoop); | 42 | Application.run(Color.BLACK, viewer::eventLoop); |
43 | } catch (URISyntaxException e) { | 43 | } catch (URISyntaxException e) { |
44 | System.err.println("Error in path syntax."); | 44 | System.err.println(e.getMessage()); |
45 | System.exit(1); | 45 | System.exit(1); |
46 | } catch (IOException e) { | 46 | } catch (IOException e) { |
47 | System.err.println("Something occurred while reading the files."); | 47 | System.err.println(e.getMessage()); |
48 | System.exit(1); | 48 | System.exit(2); |
49 | } | 49 | } |
50 | } | 50 | } |
51 | } | 51 | } |