diff options
author | Carlo Zancanaro <carlo@clearboxsystems.com.au> | 2013-09-29 15:36:10 +1000 |
---|---|---|
committer | Carlo Zancanaro <carlo@clearboxsystems.com.au> | 2013-09-29 15:36:10 +1000 |
commit | 9230395b82b59edd9053d062a4f2f9481432e64f (patch) | |
tree | 891b3876b58d08bffae21aa3991a616b196e8a94 /src/clojure_sql | |
parent | 595963b76b6c408c48a9f8a109755887eabd05a8 (diff) |
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).
Diffstat (limited to 'src/clojure_sql')
-rw-r--r-- | src/clojure_sql/dsl.clj | 2 |
1 files changed, 1 insertions, 1 deletions
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}))) |