From cbab6f20fe6cd2eaa8ae41c815612a32db3b11bb Mon Sep 17 00:00:00 2001 From: Adam NAILI Date: Sun, 14 Jan 2018 18:04:29 +0100 Subject: Modifying Exception handling messages in Main --- src/main/java/fr/umlv/java/wallj/Main.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/main') 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 { Viewer viewer = new Viewer(boards); Application.run(Color.BLACK, viewer::eventLoop); } catch (URISyntaxException e) { - System.err.println("Error in path syntax."); + System.err.println(e.getMessage()); System.exit(1); } catch (IOException e) { - System.err.println("Something occurred while reading the files."); - System.exit(1); + System.err.println(e.getMessage()); + System.exit(2); } } } -- cgit v1.2.3