Ignore:
Timestamp:
2014-07-07T08:44:22+02:00 (11 years ago)
Author:
zverik
Message:

more understandable messages

Location:
applications/editors/josm/plugins/geochat/src/geochat
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • applications/editors/josm/plugins/geochat/src/geochat/ChatServerConnection.java

    r30262 r30513  
    129129        LatLon pos = getPosition();
    130130        if( pos == null ) {
    131             fireLoginFailed("Position is unknown");
     131            fireLoginFailed("Zoom level is too low");
    132132            return;
    133133        }
     
    235235        LatLon pos = getPosition();
    236236        if( pos == null ) {
    237             fireMessageFailed("Position is unknown");
     237            fireMessageFailed("Zoom level is too low");
    238238            return;
    239239        }
     
    250250                        fireMessageFailed(tr("Could not get server response, check logs"));
    251251                    else if( json.get("error") != null )
    252                         fireMessageFailed(tr("Failed to send message:") + "\n" + json.getString("error"));
     252                        fireMessageFailed(json.getString("error"));
    253253                }
    254254            });
  • applications/editors/josm/plugins/geochat/src/geochat/GeoChatPanel.java

    r30511 r30513  
    249249                @Override
    250250                public void run() {
    251                     new Notification(tr("GeoChat") + ": " + reason).show();
     251                    new Notification(tr("Failed to log in to GeoChat:") + "\n" + reason).show();
    252252                }
    253253            });
     
    267267            @Override
    268268            public void run() {
    269                 new Notification(tr("GeoChat") + ": " + reason).show();
     269                new Notification(tr("Failed to send message:") + "\n" + reason).show();
    270270            }
    271271        });
Note: See TracChangeset for help on using the changeset viewer.