Skip to content
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

Graceful Failures for InMemory Solutions #31

Closed
jalcine opened this issue Apr 9, 2022 · 2 comments
Closed

Graceful Failures for InMemory Solutions #31

jalcine opened this issue Apr 9, 2022 · 2 comments

Comments

@jalcine
Copy link

jalcine commented Apr 9, 2022

I ran into a situation where

let file = &handle.files[path];
causes my test to panic. It looks like this could be mitigated by calling self.exists() before attempting to pluck the value out or using the Vec::get method to safely get that value out.

(Originally published at: https://jacky.wtf/2022/4/rf/rfC0gc2rn9hwfkifMaPBgeAE)

@manuel-woelker
Copy link
Owner

Good point, thanks for the report! Should be fixed in 0.7.1

@jalcine
Copy link
Author

jalcine commented Apr 15, 2022

Thank you!

(Originally published at: https://jacky.wtf/2022/4/Pe/Pe1yAGt6sFF-R7MqYWQJHco-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants