diff options
Diffstat (limited to 'gwtquery-core/src')
-rw-r--r-- | gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java index 4ed7cad8..736f024a 100644 --- a/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java +++ b/gwtquery-core/src/main/java/com/google/gwt/query/client/GQuery.java @@ -270,8 +270,7 @@ public class GQuery implements Lazy<GQuery, LazyGQuery> { // Otherwise we wrap it as an element return new GQuery(jso.<Element> cast()); } - console - .log("Error: GQuery.$(Object o) could not wrap the type : ", o.getClass().getName(), o); + throw new RuntimeException("Error: GQuery.$(Object o) could not wrap the type : " + o.getClass().getName() + " " + o); } return $(); } |