Revision fad96c78 web_client/src/gr/grnet/pithos/web/client/commands/ToTrashCommand.java
b/web_client/src/gr/grnet/pithos/web/client/commands/ToTrashCommand.java | ||
---|---|---|
127 | 127 |
public void onError(Throwable t) { |
128 | 128 |
GWT.log("", t); |
129 | 129 |
if (t instanceof RestException) { |
130 |
app.displayError("Unable to delete folder: " + ((RestException) t).getHttpStatusText()); |
|
130 |
if (((RestException) t).getHttpStatusCode() == Response.SC_NOT_FOUND) |
|
131 |
onSuccess(null); |
|
132 |
else |
|
133 |
app.displayError("Unable to delete folder: " + ((RestException) t).getHttpStatusText()); |
|
131 | 134 |
} |
132 | 135 |
else |
133 | 136 |
app.displayError("System error unable to delete folder: "+t.getMessage()); |
Also available in: Unified diff