From 02b5170bd21c5cebb24476b68c21fa464dbc2d26 Mon Sep 17 00:00:00 2001 From: Dan Peddle Date: Fri, 3 Jan 2020 10:57:15 +0100 Subject: [PATCH] include path in assert error Including path helps track down which particular cursor is misbehaving. --- src/reagent/ratom.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/reagent/ratom.cljs b/src/reagent/ratom.cljs index 37885fd..fe565be 100644 --- a/src/reagent/ratom.cljs +++ b/src/reagent/ratom.cljs @@ -321,7 +321,9 @@ (and (ifn? src) (not (vector? src)))) (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))