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:
parent
234b2c9427
commit
195fb3b29d
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue