aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>2014-02-08 15:00:39 +0100
committerManuel Carrasco Moñino <manuel.carrasco.m@gmail.com>2014-02-08 15:00:39 +0100
commitdf049d13c90fa98bab298385e0653dc3e86c4847 (patch)
tree0c718d578b7edd94b9f850f5114785e29462e200
parentc08a8c89c9b3f63e6f4df6287cdb67f9e0da8bc0 (diff)
downloadgwtquery-df049d13c90fa98bab298385e0653dc3e86c4847.tar.gz
gwtquery-df049d13c90fa98bab298385e0653dc3e86c4847.zip
Bad arguments order
-rw-r--r--gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java b/gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java
index 4ac9ed1a..2db50517 100644
--- a/gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java
+++ b/gwtquery-core/src/main/java/com/google/gwt/query/vm/AjaxTransportJre.java
@@ -92,7 +92,7 @@ public class AjaxTransportJre implements AjaxTransport {
int status = response.getStatusCode();
if (status <= 0 || status >= 400) {
String statusText = status <= 0 ? "Bad CORS" : response.getStatusText();
- dfd.reject(null, new RequestException("HTTP ERROR: " + status + " " + statusText + "\n" + response.getText()));
+ dfd.reject(new RequestException("HTTP ERROR: " + status + " " + statusText + "\n" + response.getText()), null);
} else {
dfd.resolve(response, null);
}