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

replace err with badPrimitive #602

Closed
wants to merge 1 commit into
base: master
from

Conversation

Projects
None yet
3 participants
@lukewestby
Member

lukewestby commented May 14, 2016

err isn't defined, it looks like badPrimitive is used elsewhere for the same purpose so perhaps it's just a typo

thanks!

@eeue56

This comment has been minimized.

Show comment
Hide comment
@eeue56

eeue56 May 15, 2016

Contributor

@lukewestby does this solve any known issues? This seems legit, but it would be good to add a failing test case to the test suite first.

Contributor

eeue56 commented May 15, 2016

@lukewestby does this solve any known issues? This seems legit, but it would be good to add a failing test case to the test suite first.

@lukewestby

This comment has been minimized.

Show comment
Hide comment
@lukewestby

lukewestby May 15, 2016

Member

@eeue56 yep! See this thread from elm-dev. If you run the tests with this change they pass without the mentioned runtime error.

cc @rluiten

Member

lukewestby commented May 15, 2016

@eeue56 yep! See this thread from elm-dev. If you run the tests with this change they pass without the mentioned runtime error.

cc @rluiten

@rluiten

This comment has been minimized.

Show comment
Hide comment
@rluiten

rluiten May 15, 2016

Contributor

I have a test case that produces the failure.
Here it is, once luke suggested the fix, i figured it was expecting an object but got a list.

DecoderBug.elm.txt
Had to update the file i forgot to fix the expected string when it does not crash first time.

Contributor

rluiten commented May 15, 2016

I have a test case that produces the failure.
Here it is, once luke suggested the fix, i figured it was expecting an object but got a list.

DecoderBug.elm.txt
Had to update the file i forgot to fix the expected string when it does not crash first time.

@eeue56

This comment has been minimized.

Show comment
Hide comment
@eeue56

eeue56 May 15, 2016

Contributor

@lukewestby can you add the fail state to the test suite? thanks!

Contributor

eeue56 commented May 15, 2016

@lukewestby can you add the fail state to the test suite? thanks!

rluiten added a commit to rluiten/core that referenced this pull request May 15, 2016

@lukewestby

This comment has been minimized.

Show comment
Hide comment
@lukewestby

lukewestby May 15, 2016

Member

I made a PR into @rluiten's fork with the test case, closing this one

Member

lukewestby commented May 15, 2016

I made a PR into @rluiten's fork with the test case, closing this one

@lukewestby lukewestby closed this May 15, 2016

evancz pushed a commit that referenced this pull request May 17, 2016

Merge pull request #605 from rluiten/master
Add test case for #602 pull request fix.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment