mirror of
https://github.com/penpot/penpot.git
synced 2026-04-30 13:49:06 +00:00
📎 Add exception hint on db not found exception.
This commit is contained in:
parent
234b2c9427
commit
195fb3b29d
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user