Implemented ability to send error data along with user feedback in case of error
[pithos-web-client] / src / gr / grnet / pithos / web / client / mysharedtree / MysharedTreeViewModel.java
index ca584f9..2d9e9d3 100644 (file)
@@ -231,6 +231,7 @@ public class MysharedTreeViewModel implements TreeViewModel {
                 @Override
                 public void onError(Throwable t) {
                     GWT.log("Error getting folder", t);
+                                       app.setError(t);
                     if (t instanceof RestException)
                         app.displayError("Error getting folder: " + ((RestException) t).getHttpStatusText());
                     else
@@ -282,6 +283,7 @@ public class MysharedTreeViewModel implements TreeViewModel {
             @Override
             public void onError(Throwable t) {
                 GWT.log("Error getting folder", t);
+                               app.setError(t);
                 if (t instanceof RestException)
                     app.displayError("Error getting folder: " + ((RestException) t).getHttpStatusText());
                 else