Merge pull request #472 from dazld/patch-1

Include path in assert error for cursors
This commit is contained in:
Juho Teperi 2020-01-15 09:38:35 +02:00 committed by GitHub
commit ced4a18aaa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -321,7 +321,9 @@
(and (ifn? src) (and (ifn? src)
(not (vector? src)))) (not (vector? src))))
(str "src must be a reactive atom or a function, not " (str "src must be a reactive atom or a function, not "
(pr-str src))) (pr-str src)
" while attempting to get path: "
(pr-str path))
(->RCursor src path nil nil nil)) (->RCursor src path nil nil nil))