Skip to content

Commit aa67e7a

Browse files
darkleaftonsky
authored andcommitted
fix validate-query error message
1 parent 4f4f4ae commit aa67e7a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

src/datascript/parser.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -696,7 +696,7 @@
696696
(raise "Query for unknown vars: " (mapv :symbol unknown)
697697
{:error :parser/query, :vars unknown, :form form}))
698698
(when-not (empty? shared)
699-
(raise ":in and :with should not use same variables: " (mapv :symbol shared)
699+
(raise ":find and :with should not use same variables: " (mapv :symbol shared)
700700
{:error :parser/query, :vars shared, :form form})))
701701

702702
(let [in-vars (collect-vars (:qin q))

test/datascript/test/parser_query.cljc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"Query for unknown vars: [?t]"
2424

2525
'[:find ?x ?e :with ?y ?e :where [?x ?e ?y]]
26-
":in and :with should not use same variables: [?e]"
26+
":find and :with should not use same variables: [?e]"
2727

2828
'[:find ?e :in $ $ ?x :where [?e]]
2929
"Vars used in :in should be distinct"

0 commit comments

Comments
 (0)