blueprinter icon indicating copy to clipboard operation
blueprinter copied to clipboard

Raise Error if `default_if` passed invalid value instead of eating value

Open cguess opened this issue 5 years ago • 1 comments

When use default_if and an invalid symbol is passed in the key/value is just eaten and not rendered. Since there's no reason this would ever happen on purpose (that I can imagine) I'd suggest an exception be raised instead of silently failing.

This would be a breaking change, but at least it would be a loud break.

cguess avatar Oct 15 '20 19:10 cguess

Hey @cguess, I think that definitely makes sense for the case where a symbol is explicitly passed in, but just incorrectly. I'll draft a PR for this, but this will go into a 1.0.0 release candidate branch as you correctly noted this would be a breaking change. Thanks for creating this issue!

mcclayton avatar Oct 19 '20 18:10 mcclayton

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Nov 03 '23 01:11 github-actions[bot]