From ea156198c68e3aea4ebc07d14ed957afc2b371ff Mon Sep 17 00:00:00 2001 From: Andrey Antukh Date: Wed, 29 Nov 2023 15:43:00 +0100 Subject: [PATCH] :bug: Use correct error codes on feature checking functions --- common/src/app/common/features.cljc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/src/app/common/features.cljc b/common/src/app/common/features.cljc index fc4bcab22f..ab2e663075 100644 --- a/common/src/app/common/features.cljc +++ b/common/src/app/common/features.cljc @@ -177,7 +177,7 @@ (let [not-supported (set/difference enabled-features supported-features)] (when (seq not-supported) (ex/raise :type :restriction - :code :features-mismatch + :code :feature-not-supported :feature (first not-supported) :hint (str/ffmt "features '%' not supported" (str/join "," not-supported))))) @@ -220,7 +220,7 @@ (when (seq not-supported) (ex/raise :type :restriction - :code :feature-mismatch + :code :file-feature-mismatch :feature (first not-supported) :hint (str/ffmt "file features '%' not enabled" (str/join "," not-supported))))))