jamesrhester / Lerche.jl

A Julia port of the Lark parser
MIT License
45 stars 3 forks source link

Handle TaskFailedException #5

Closed jamesrhester closed 3 years ago

jamesrhester commented 3 years ago

Julia 1.4 introduces TaskFailedException to allow digging in to the error that occurred within a task. A test that expects a GrammarError fails for Julia > 1.4

jamesrhester commented 3 years ago

Fixed by catching and unwrapping TaskFailedException, defining a dummy TaskFailedException for older versions.