Include the invalid negation condition in exception thrown on compilation
Closed this issue · 1 comments
WilliamParker commented
clara.test-rules> (defrule myrule
[:not [First] [Second]]
=>
(insert! (->Third)))
#'clara.test-rules/myrule
clara.test-rules> (def s (mk-session [myrule] :cache false))
CompilerException java.lang.RuntimeException: Negation must have only one child., compiling:(form-init4675984088539573488.clj:64:26)
The exception thrown here comes from to-dnf in the compiler. This exception could be improved by including the offending expression in the exception thrown.
WilliamParker commented
Resolved by #488 ; closing.