Is it possible to continue on error, but ignore that parts that failed parsing? #135
Unanswered
acheronfail
asked this question in
Q&A
Replies: 1 comment 1 reply
-
|
I'd also love to have something like this, I have customers who might be setting a value incorrectly, I'd like to still continue and just warn them about a misconfiguration, not necessarily requiring the app to not use their config and use the default. As I'd like to just use a default for a specific field. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Is it possible to have
figmentreturn all the successfully parsed items, and ignore the ones it didn't know about? Consider this example:Right now, this example fails completely with an
UnknownVarianterror (rightly so, since there's an enum that's not known).I'm wondering, if there's a way to return all the config that was parsed, and ignore parts of it that failed? 🤔
For an application I'm making, it would be useful to continue with as much info as possible rather than fail completely on a parsing error...
Beta Was this translation helpful? Give feedback.
All reactions