-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Don't ignore draw errors #13240
Don't ignore draw errors #13240
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Always nice to have descriptive errors 👍
Looks like I should use expect here and just log the errors. I'll update my PR soon. |
Okay, so this generates a bunch of errors now, but it just generates a bunch RenderCommandFailure. So I'll need to also bubble up what those failures are. The main issue is that we use RenderCommandResult::Failure just to skip execution even if it isn't an error. |
I added a skip variant to I'm not sure if I should now prefer to panic when I encounter a failure because this should be a real error now. |
you kept 3 |
nvm those were indeed unexpected |
@IceSentry let me know once merge conflicts are resolved so I can merge? |
Objective
Solution
Changelog
Renamed
RenderCommandResult::Failure
toRenderCommandResult::Skip
Added a
reason
string parameter toRenderCommandResult::Failure
Migration Guide
If you were using
RenderCommandResult::Failure
to just ignore an error and retry later, useRenderCommandResult::Skip
instead.This wasn't intentional, but this PR should also help with #12660 since we can turn a few unwraps into error messages now.