Fork me on GitHub
#pathom
<
2022-07-21
>
Jakub Holý (HolyJak)22:07:42

In Pathom 2. why does (_parser {} [:no-such-thing :com.wsscode.pathom.core/errors]) return {} and not info about not having found :no-such-thing ? Am I missing some plugin / query / ... ? 🙏 I see I do have p/error-handler-plugin but also (p/post-process-parser-plugin p/elide-not-found) (p/post-process-parser-plugin elide-reader-errors) . That would likely explain why I see no errors. Still, why does Pathom return {} and not nil ?

wilkerlucio23:07:12

yes, the plugin elide-not-found is removing the info, if you take that out you will start seeing a not found value instead

👍 1
Jakub Holý (HolyJak)23:07:59

So it is by design that Pathom does not return nil here?