Skip to content

Commit

Permalink
improve diagnostics
Browse files Browse the repository at this point in the history
  • Loading branch information
ekoontz committed Jul 13, 2024
1 parent d06a595 commit ce70483
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/menard/english.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,8 @@
(log/debug (str "post-lexical-retrieval-rule matched: " each-then))
(log/debug (str " lexeme: " (l/pprint lexeme)))
(if (= :fail unify)
(exception (str "unified rule's :if but not its :then: rule: " rule "; lexeme: " (l/pprint lexeme)))
(exception (str "lexeme: " (l/pprint lexeme)
" unified rule's :if but not its :then: rule: " rule ": fail-path: " (diag/fail-path lexeme each-then)))
unify)))))
[lexeme]))))))

Expand Down

0 comments on commit ce70483

Please sign in to comment.