Skip to content
Snippets Groups Projects
Commit e5633b3e authored by Cam Saul's avatar Cam Saul
Browse files

cleanup

parent 3c16e4a3
No related branches found
No related tags found
No related merge requests found
......@@ -47,6 +47,6 @@
columns first-row)}})
(catch java.sql.SQLException e
{:status :failed
:error (->> (.getMessage e) ; error message comes back like 'Column "ZID" not found; SQL statement: ... [error-code]
(re-find (re-pattern (format "(.*);\\s*SQL statement:" sql))) ; the user already knows the SQL, and error message is meaningless
second)}))) ; so just return the part of the exception that is relevant
:error (->> (.getMessage e) ; error message comes back like 'Column "ZID" not found; SQL statement: ... [error-code]
(re-find #"^(.*);") ; the user already knows the SQL, and error code is meaningless
second)}))) ; so just return the part of the exception that is relevant
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment