ionide / Fornax

Scriptable static site generator using type safe F# DSL to define page templates.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

MangelMaxime opened this issue · comments

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.