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

Better failure on unsupported block form of image #1388

Merged
merged 1 commit into from
Feb 10, 2017
Merged

Conversation

jasonrclark
Copy link
Member

This is the stopgap to behave a little kinder around #1309 which we aren't addressing in the 4.0 release.

This raises the same Shoes::NotImplementedError we used for video, with a similar informative message.

Also moves the specs over to the in-element-spec form for checking DSL.

Additionally, makes the parameter checking slightly looser on image so if we get block-form calls that have coordinates (which used to be supported), we can catch them with the block warning instead of a plain ArgumentError.

Copy link
Member

@PragTob PragTob left a comment

Choose a reason for hiding this comment

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

Looks good!

@PragTob PragTob merged commit c95ed33 into master Feb 10, 2017
@PragTob PragTob deleted the fail-image-block branch February 10, 2017 21:08
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.

2 participants