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

Ensure required context values are present #9

Merged
merged 2 commits into from
Oct 3, 2012
Merged

Conversation

juliamae
Copy link

@juliamae juliamae commented Oct 3, 2012

When I failed to provide an asset_host for EmojiFilter, the error thrown was a vague can't convert nil into String.

I followed CamoFilter's example of raising an exception if the required value isn't provided, but I made it an ArgumentError.

However this is handled, it should probably be handled the same way across all the filters that require certain context values.

- Raise an ArgumentError if the asset_root isn't provided.
@atmos
Copy link
Contributor

atmos commented Oct 3, 2012

atmos added a commit that referenced this pull request Oct 3, 2012
Ensure required context values are present
@atmos atmos merged commit fe7557b into master Oct 3, 2012
@gjtorikian gjtorikian deleted the required-contexts branch June 3, 2022 19:57
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.

3 participants