summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src/main/java/at/asit/pdfover/gui
diff options
context:
space:
mode:
authorJakob Heher <jakob.heher@iaik.tugraz.at>2022-03-21 15:38:51 +0100
committerJakob Heher <jakob.heher@iaik.tugraz.at>2022-03-21 15:38:51 +0100
commit358d03a7db3bb56aa302c8ce069a52af09300bef (patch)
treec53b8122815b9ce8abc3519ad548f6aceb38ced2 /pdf-over-gui/src/main/java/at/asit/pdfover/gui
parent00c792b41902bc5b6f065371e686f88ce83b7392 (diff)
downloadpdf-over-358d03a7db3bb56aa302c8ce069a52af09300bef.tar.gz
pdf-over-358d03a7db3bb56aa302c8ce069a52af09300bef.tar.bz2
pdf-over-358d03a7db3bb56aa302c8ce069a52af09300bef.zip
improve error logging/handling for SWT to diagnose display-related bug in release builds
Diffstat (limited to 'pdf-over-gui/src/main/java/at/asit/pdfover/gui')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java8
1 files changed, 5 insertions, 3 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java
index b75b4ebd..1cb55800 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/Main.java
@@ -19,6 +19,8 @@ package at.asit.pdfover.gui;
import java.io.File;
import java.io.IOException;
+import javax.swing.JOptionPane;
+
import at.asit.pdfover.commons.Constants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -60,11 +62,11 @@ public class Main {
}
catch (Throwable e) {
- log.error("Error occured " + e.getMessage()); //$NON-NLS-1$
+ log.error("Unhandled error", e); //$NON-NLS-1$
- /*JOptionPane.showMessageDialog(null,
+ JOptionPane.showMessageDialog(null,
"Error occured " + e.getMessage(), //$NON-NLS-1$
- null, JOptionPane.ERROR_MESSAGE);*/
+ null, JOptionPane.ERROR_MESSAGE);
}
// Workaround for remaining AWT-Shutdown thread on OSX