zeroSteiner / rule-engine

A lightweight, optionally typed expression language with a custom grammar for matching arbitrary Python objects.
https://zerosteiner.github.io/rule-engine/
BSD 3-Clause "New" or "Revised" License
433 stars 54 forks source link

Raise regex failure details #61

Closed zeroSteiner closed 1 year ago

zeroSteiner commented 1 year ago

While looking at #59 I noticed that there aren't any details shown when there's a regex failure. The details should be propagated so the user can see why the regex is invalid. The regex itself should also probably be included in the exception for inspection.

Integrate this into the debug repl with exception handling to print those details for debugging purposes.

tianguoxin commented 1 year ago

Best Wishes

zeroSteiner commented 1 year ago

Completed in v3.6.