From 195fb3b29d96b2138234e6ba6ef7cb71624aea25 Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Thu, 7 Jan 2021 11:27:03 +0100 Subject: [PATCH] :paperclip: Add exception hint on db not found exception. --- backend/src/app/db.clj | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/src/app/db.clj b/backend/src/app/db.clj index 09309f4a07..d50ddb8a2b 100644 --- a/backend/src/app/db.clj +++ b/backend/src/app/db.clj @@ -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