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

Developer loop breaks when a code gen error happens. #56

Closed
rupertlssmith opened this issue Jan 23, 2020 · 1 comment · Fixed by #58
Closed

Developer loop breaks when a code gen error happens. #56

rupertlssmith opened this issue Jan 23, 2020 · 1 comment · Fixed by #58

Comments

@rupertlssmith
Copy link

When running in dev mode if you get a compile error the dev loop keeps running. If you get a codegen error, say cannot decode your metadata, it breaks out of the dev loop and has to be manually restarted.

For example:

-- METADATA DECODE ERROR ----------------------------------------------------- elm-pages

I ran into a problem when parsing the metadata for the page with this path: /

Problem with the given value:

{
        "type": "news",
        "author": "Rupert Smith",
        "title": "Authentication in Elm",
        "description": "About and authentication API I designed for Elm.",
        "image": "/images/article-covers/hello.jpg",
        "published": "2020-01-21"
    }

Unexpected page type news

and then the dev loop terminates.

===

Would be nice if the dev loop just kept running - the error printed on the console is helpful in taking me right to the problem that needs to be fixed.

Bonus - if the error would also show in the browser.

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 a pull request may close this issue.

2 participants