0
Fork 0
mirror of https://github.com/penpot/penpot.git synced 2025-02-23 07:16:07 -05:00

🐛 Use correct error codes on feature checking functions

This commit is contained in:
Andrey Antukh 2023-11-29 15:43:00 +01:00 committed by Andrés Moya
parent 22757a449f
commit ea156198c6

View file

@ -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))))))