From 9230395b82b59edd9053d062a4f2f9481432e64f Mon Sep 17 00:00:00 2001 From: Carlo Zancanaro Date: Sun, 29 Sep 2013 15:36:10 +1000 Subject: Clear up the ambiguous field error message The ambiguous field error message used to specify that it was a case where multiple tables were present, but that's not always true. If you're trying to work on a query that has been "subqueried" then you'll also get the error (arguably that should have a different error message, but I'll come back to that later). --- src/clojure_sql/dsl.clj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/clojure_sql/dsl.clj b/src/clojure_sql/dsl.clj index 8e4a24d..8264e24 100644 --- a/src/clojure_sql/dsl.clj +++ b/src/clojure_sql/dsl.clj @@ -21,7 +21,7 @@ ;; } (defn ^:private ambiguous-error [field & [query]] - (throw (ex-info (str "Ambiguous field " field " in query with more than one table") + (throw (ex-info (str "Ambiguous field " field " in query") {:field field :query query}))) -- cgit v1.2.3