Display better error msg when there are network problems #318

This commit is contained in:
Manfred Karrer 2014-12-08 14:45:30 +01:00
parent 67ed736652
commit 39524719ee
3 changed files with 6 additions and 5 deletions

View file

@ -7,6 +7,7 @@ new blue: 0f87c3
new grey: 666666 new grey: 666666
00abff 00abff
orange webpage quotes : ff7f00
main bg grey: dddddd main bg grey: dddddd

View file

@ -258,7 +258,7 @@ public class MainView extends InitializableView<StackPane, MainViewModel> {
bootstrapStateLabel.setId("splash-error-state-msg"); bootstrapStateLabel.setId("splash-error-state-msg");
bootstrapIndicator.setVisible(false); bootstrapIndicator.setVisible(false);
Popups.openErrorPopup("Error", "Cannot connect to P2P network. \n\nError message:\n" + Popups.openErrorPopup("Error", "Connection to P2P network failed. \n\nReason: " +
model.bootstrapErrorMsg.get()); model.bootstrapErrorMsg.get());
} }
}); });

View file

@ -229,10 +229,10 @@ class BootstrappedPeerBuilder {
else { else {
handleError(BootstrapState.DISCOVERY_AUTO_PORT_FORWARDING_FAILED, "Automatic port forwarding " + handleError(BootstrapState.DISCOVERY_AUTO_PORT_FORWARDING_FAILED, "Automatic port forwarding " +
"failed. " + "failed. " +
"Fail reason: " + future.failedReason() + "\n\nCheck if UPnP is enabled on your router. " +
"\nCheck if UPnP is not enabled on your router. " + "\nIf it is enabled and it still does not work you can try also to setup manual port " +
"\nYou can try also to setup manual port forwarding. " + "forwarding. " +
"\nRelay mode is currently not supported but will follow later. "); "\n\nYou find on our Github Wiki help how to setup manual port forwarding.");
// For the moment we don't support relay mode as it has too much problems // For the moment we don't support relay mode as it has too much problems
/* setState(BootstrapState.AUTO_PORT_FORWARDING_NOT_SUCCEEDED, "Port forwarding has failed. " + /* setState(BootstrapState.AUTO_PORT_FORWARDING_NOT_SUCCEEDED, "Port forwarding has failed. " +