Revision: 14743
http://gate.svn.sourceforge.net/gate/?rev=14743&view=rev
Author: valyt
Date: 2011-12-12 14:34:20 +0000 (Mon, 12 Dec 2011)
Log Message:
-----------
Also give the user some feedback when things go bad.
Modified Paths:
--------------
mimir/trunk/mimir-web/src/gwt/gate/mimir/web/client/UI.java
Modified: mimir/trunk/mimir-web/src/gwt/gate/mimir/web/client/UI.java
===================================================================
--- mimir/trunk/mimir-web/src/gwt/gate/mimir/web/client/UI.java 2011-12-12
14:33:30 UTC (rev 14742)
+++ mimir/trunk/mimir-web/src/gwt/gate/mimir/web/client/UI.java 2011-12-12
14:34:20 UTC (rev 14743)
@@ -112,7 +112,13 @@
if(remoteError) {
// this is the second failure: bail out
// re-throw the exception so it's seen (useful when debugging)
- throw new RuntimeException(caught);
+ String message = caught.getLocalizedMessage();
+ if(message == null || message.length() == 0) {
+ message = "Error connecting to index.";
+ }
+ feedbackLabel.setText(message);
+ updateResultsDisplay(null);
+ throw new RuntimeException(caught);
} else {
// update the flag so we get out next time
remoteError = true;
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
GATE-cvs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gate-cvs