Skip to content

Commit 58a3556

Browse files
author
Yannick Scherer
committed
fix exception message when using 'position' without 'with-positional-zipper'.
1 parent 67d5720 commit 58a3556

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/rewrite_clj/custom_zipper/core.clj

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,9 @@
106106
(:position loc)
107107
(throw
108108
(IllegalStateException.
109-
(str "to use the positional zipper functions, please use "
110-
"`rewrite-clj.zip.zip/with-positional-zipper`.")))))
109+
(str
110+
"to use the positional zipper functions, please wrap your rewrite-clj"
111+
" calls with `rewrite-clj.zip/with-positional-zipper`.")))))
111112

112113
(defn-switchable lefts
113114
"Returns a seq of the left siblings of this loc"

0 commit comments

Comments
 (0)