summaryrefslogtreecommitdiff
path: root/pdf-over-gui/src
diff options
context:
space:
mode:
authortkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-07-24 14:58:34 +0000
committertkellner <tkellner@174cde9d-5d70-4d2a-aa98-46368bc2aaf7>2013-07-24 14:58:34 +0000
commit692c813f44f3f4e79e6dbb3b419448731a176075 (patch)
tree3cc1ff410d2c36aeaa1fe8a90d8df04aba845999 /pdf-over-gui/src
parentace0e313c742fa8542ffbf1c8b119547ce40a69c (diff)
downloadpdf-over-692c813f44f3f4e79e6dbb3b419448731a176075.tar.gz
pdf-over-692c813f44f3f4e79e6dbb3b419448731a176075.tar.bz2
pdf-over-692c813f44f3f4e79e6dbb3b419448731a176075.zip
Include exception msg in MobileBKU error dialog
git-svn-id: https://joinup.ec.europa.eu/svn/pdf-over/trunk@472 174cde9d-5d70-4d2a-aa98-46368bc2aaf7
Diffstat (limited to 'pdf-over-gui/src')
-rw-r--r--pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java6
1 files changed, 5 insertions, 1 deletions
diff --git a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java
index 7df640de..8c0f02cb 100644
--- a/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java
+++ b/pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java
@@ -186,9 +186,13 @@ public class MobileBKUState extends State {
MobileBKUStatus mobileStatus = this.getStatus();
if (this.threadException != null) {
+ String message = Messages.getString("error.Unexpected"); //$NON-NLS-1$
+ String errormsg = this.threadException.getLocalizedMessage();
+ if (errormsg != null && !errormsg.isEmpty())
+ message += ": " + errormsg; //$NON-NLS-1$
ErrorDialog error = new ErrorDialog(
getStateMachine().getGUIProvider().getMainShell(),
- Messages.getString("error.Unexpected"), BUTTONS.OK); //$NON-NLS-1$
+ message, BUTTONS.OK);
// error.setException(this.threadException);
// this.setNextState(error);
error.open();