Skip to content
This repository was archived by the owner on Mar 15, 2023. It is now read-only.

Commit a06336e

Browse files
author
Jacob van Mourik
committed
Added missing stack traces.
1 parent e3efe3a commit a06336e

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/main/java/com/jvms/i18neditor/editor/Editor.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ public void createProject(Path dir, ResourceType type) {
115115
updateHistory();
116116
updateUI();
117117
} catch (IOException e) {
118+
e.printStackTrace();
118119
showError(MessageBundle.get("resources.import.error.single"));
119120
}
120121
}
@@ -154,6 +155,7 @@ public void importProject(Path dir, boolean showEmptyProjectError) {
154155
setupResource(resource);
155156
project.addResource(resource);
156157
} catch (IOException e) {
158+
e.printStackTrace();
157159
showError(MessageBundle.get("resources.import.error.single", resource.getPath().toString()));
158160
}
159161
});
@@ -166,6 +168,7 @@ public void importProject(Path dir, boolean showEmptyProjectError) {
166168
updateHistory();
167169
updateUI();
168170
} catch (IOException e) {
171+
e.printStackTrace();
169172
showError(MessageBundle.get("resources.import.error.multiple"));
170173
}
171174
}
@@ -177,6 +180,7 @@ public void saveProject() {
177180
try {
178181
Resources.write(resource, !project.isMinifyResources());
179182
} catch (IOException e) {
183+
e.printStackTrace();
180184
error = true;
181185
showError(MessageBundle.get("resources.write.error.single", resource.getPath().toString()));
182186
}
@@ -318,6 +322,7 @@ public void showAddLocaleDialog() {
318322
project.addResource(resource);
319323
updateUI();
320324
} catch (IOException e) {
325+
e.printStackTrace();
321326
showError(MessageBundle.get("dialogs.locale.add.error.create"));
322327
}
323328
}
@@ -506,7 +511,6 @@ public void launch() {
506511
if (project == null) {
507512
updateHistory();
508513
}
509-
510514
if (project != null && project.hasResources()) {
511515
// Restore last expanded nodes
512516
List<String> expandedKeys = settings.getLastExpandedNodes();

0 commit comments

Comments
 (0)