Revision 3f8622d4 src/gr/grnet/pithos/web/client/commands/RestoreTrashCommand.java
b/src/gr/grnet/pithos/web/client/commands/RestoreTrashCommand.java | ||
---|---|---|
125 | 125 |
@Override |
126 | 126 |
public void onError(Throwable t) { |
127 | 127 |
GWT.log("", t); |
128 |
app.setError(t); |
|
128 | 129 |
if (t instanceof RestException) { |
129 | 130 |
if (((RestException) t).getHttpStatusCode() == Response.SC_NOT_FOUND) |
130 | 131 |
onSuccess(null); |
... | ... | |
151 | 152 |
@Override |
152 | 153 |
public void onError(Throwable t) { |
153 | 154 |
GWT.log("", t); |
155 |
app.setError(t); |
|
154 | 156 |
if (t instanceof RestException) { |
155 | 157 |
app.displayError("Unable to get folder: " + ((RestException) t).getHttpStatusText()); |
156 | 158 |
} |
... | ... | |
170 | 172 |
@Override |
171 | 173 |
public void onError(Throwable t) { |
172 | 174 |
GWT.log("", t); |
175 |
app.setError(t); |
|
173 | 176 |
if (t instanceof RestException) { |
174 | 177 |
app.displayError("Unable to create folder:" + ((RestException) t).getHttpStatusText()); |
175 | 178 |
} |
... | ... | |
202 | 205 |
@Override |
203 | 206 |
public void onError(Throwable t) { |
204 | 207 |
GWT.log("", t); |
208 |
app.setError(t); |
|
205 | 209 |
if (t instanceof RestException) { |
206 | 210 |
app.displayError("Unable to copy file: " + ((RestException) t).getHttpStatusText()); |
207 | 211 |
} |
Also available in: Unified diff