0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-01-25 07:58:49 -05:00

📎 Add exception hint on db not found exception.

This commit is contained in:
Andrey Antukh 2021-01-07 11:27:03 +01:00 committed by Alonso Torres
parent 234b2c9427
commit 195fb3b29d

View file

@ -215,7 +215,8 @@
(assoc :suffix "for update"))
res (exec-one! ds (jdbc-bld/for-query table params opts) opts)]
(when (or (:deleted-at res) (not res))
(ex/raise :type :not-found))
(ex/raise :type :not-found
:hint "database object not found"))
res)))
(defn get-by-id