Skip to content
Snippets Groups Projects
Commit a68adcd4 authored by Lange, Dr. Herbert's avatar Lange, Dr. Herbert
Browse files

add message if exception or error happens when running corpus services

parent 1056ba3c
No related branches found
No related tags found
No related merge requests found
Pipeline #12238 passed
......@@ -111,6 +111,14 @@ public class GUI {
checkButton.setEnabled(true);
updateButton.setEnabled(true);
}
catch (Exception | Error e) {
JOptionPane.showMessageDialog(window,
"Problem " + e.getClass().toString() + " when running corpus services. " +
"Check the console for details",
"Error",
JOptionPane.ERROR_MESSAGE);
e.printStackTrace();
}
});
// Handle update
updateButton.addActionListener(actionEvent -> {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment