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

Handling missing file when using static assets #141

Merged

Conversation

leighhalliday
Copy link
Contributor

With compiled assets, if an invalid (missing) file is passed in, an unexpected error is occurring when trying to access filename of a nil object.

This checks to ensure that the asset was found before accessible filename, and in turn the expected behaviour of raising a missing file exception or rendering a comment in HTML.

Copy link
Owner

@jamesmartin jamesmartin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for your contribution. Much appreciated! ✨

@jamesmartin jamesmartin merged commit 67b7bd3 into jamesmartin:main Jul 18, 2022
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

Successfully merging this pull request may close these issues.

None yet

2 participants