Skip to content

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

Open
@MangelMaxime

Description

@MangelMaxime

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions