We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c041168 commit e9454fdCopy full SHA for e9454fd
src/malli/error.cljc
@@ -22,7 +22,7 @@
22
(let [remove-prefix #(str/replace-first % prefix "")
23
negated? #(str/starts-with? % prefix)]
24
(loop [schema schema]
25
- (or (when-some [s (error-message (assoc error :negated #(str prefix %)) options)]
+ (or (when-some [s (error-message (assoc error :negated #(some->> % (str prefix))) options)]
26
(if (negated? s)
27
(remove-prefix s)
28
(or (when (and (string? s)
0 commit comments