Implemented ability to send error data along with user feedback in case of error
[pithos-web-client] / src / gr / grnet / pithos / web / client / FolderPropertiesDialog.java
index 611c0aa..523dbe1 100644 (file)
@@ -301,6 +301,7 @@ public class FolderPropertiesDialog extends DialogBox {
             @Override\r
             public void onError(Throwable t) {\r
                                GWT.log("", t);\r
+                               app.setError(t);\r
                                if (t instanceof RestException) {\r
                                        app.displayError("Unable to create folder:" + ((RestException) t).getHttpStatusText());\r
                                }\r
@@ -360,6 +361,7 @@ public class FolderPropertiesDialog extends DialogBox {
                 @Override\r
                 public void onError(Throwable t) {\r
                     GWT.log("", t);\r
+                                       app.setError(t);\r
                     if(t instanceof RestException){\r
                         app.displayError("Unable to update folder: " + ((RestException) t).getHttpStatusText());\r
                     }\r
@@ -393,6 +395,7 @@ public class FolderPropertiesDialog extends DialogBox {
                 @Override\r
                 public void onError(Throwable t) {\r
                     GWT.log("", t);\r
+                                       app.setError(t);\r
                     if (t instanceof RestException) {\r
                        if (((RestException) t).getHttpStatusCode() == Response.SC_NOT_FOUND) { //Probably a virtual folder\r
                             final String path1 = folder.getUri();\r
@@ -405,6 +408,7 @@ public class FolderPropertiesDialog extends DialogBox {
                                 @Override\r
                                 public void onError(Throwable _t) {\r
                                     GWT.log("", _t);\r
+                                                       app.setError(_t);\r
                                     if(_t instanceof RestException){\r
                                         app.displayError("Unable to update folder: " + ((RestException) _t).getHttpStatusText());\r
                                     }\r