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

When adding an error to the context the Message is not logged in the console #113

Open
MangelMaxime opened this issue Jul 26, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@MangelMaxime
Copy link
Contributor

This generator always add an error into the context.

let generate (ctx: SiteContents) (_projectRoot: string) (page: string) =

        let error =
            {
                Path = page
                Message = $"Post %s{page} not found in the context"
                Phase = Generating
            }

        ctx.AddError error

        Layout.generationErrorPage ctx

The only log we get back is:

BAD FILE: posts/first.md

I think it would make sense to also log the message so the user understand the reason of the error.

@Krzysztof-Cieslak Krzysztof-Cieslak added the enhancement New feature or request label Aug 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants