diff options
author | Adam NAILI | 2018-01-14 18:04:29 +0100 |
---|---|---|
committer | Adam NAILI | 2018-01-14 18:04:29 +0100 |
commit | cbab6f20fe6cd2eaa8ae41c815612a32db3b11bb (patch) | |
tree | b464ad3b4893e06e35a67f9ceb7b9e5aa18416ba /src | |
parent | 183f064766a02448423f5338ed1f2e696be872f7 (diff) | |
download | wallj-cbab6f20fe6cd2eaa8ae41c815612a32db3b11bb.tar.gz |
Modifying Exception handling messages in Main
Diffstat (limited to 'src')
-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 | } |