| Both PQL and AST can return schema errors to the user. These errors are unintelligible without understanding the query engine.
clojure.lang.ExceptionInfo: Value does not match schema: (not (map? nil)) {:type :schema.core/error, :schema {:type Keyword, :field (cond-pre Keyword honeysql.types.SqlCall honeysql.types.SqlRaw {:select Any, Any Any}), Any Any}, :value nil, :error (not (map? nil))}
|
We should return a more useful error message. At a minimum we should identify the field that threw that error, the expected type, and the actual type and report that to the user. |