diff options
Diffstat (limited to 'pdf-over-gui/src/main/java')
-rw-r--r-- | pdf-over-gui/src/main/java/at/asit/pdfover/gui/workflow/states/MobileBKUState.java | 4 |
1 files changed, 4 insertions, 0 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 594e46c8..aee5827f 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 @@ -16,6 +16,7 @@ package at.asit.pdfover.gui.workflow.states;
import java.io.InputStream;
+import java.net.ConnectException;
import java.net.UnknownHostException;
import java.util.Timer;
import java.util.TimerTask;
@@ -170,6 +171,9 @@ public class MobileBKUState extends State { {
log.error("Failed to resolve hostname", e);
message = String.format(Messages.getString("error.CouldNotResolveHostname"), e.getMessage());
+ } else if (e instanceof ConnectException) {
+ log.error("Failed to connect", e);
+ message = String.format(Messages.getString("error.FailedToConnect"), e.getMessage());
} else {
message = Messages.getString("error.Unexpected");
log.error(message, e);
|