Skip to content

Commit e9454fd

Browse files
committed
wip
1 parent c041168 commit e9454fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/malli/error.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
(let [remove-prefix #(str/replace-first % prefix "")
2323
negated? #(str/starts-with? % prefix)]
2424
(loop [schema schema]
25-
(or (when-some [s (error-message (assoc error :negated #(str prefix %)) options)]
25+
(or (when-some [s (error-message (assoc error :negated #(some->> % (str prefix))) options)]
2626
(if (negated? s)
2727
(remove-prefix s)
2828
(or (when (and (string? s)

0 commit comments

Comments
 (0)