Much improved errors in next Hugo

It started out with a minify error that I had no clue how to debug, and then it took me down a rabbit hole of error improvements/fixes – mostly to help locate the file and line number more easily.

I think the before/after screenshot below illustrates it, but these improvements are also visible in the console (where you can click to get to the file in an editor). The improvements is mostly related to tracking all the files involving an error, making it much easier to locate the correct partial nested somewhere down there …

Oh, and if you don’t like the colours, you can now also add your own template for this error view.

28 Likes

This looks really nice!

1 Like

this is interesting :sunglasses:

1 Like

One more before/after which I think is even more illustrative, editing a shortcode template:

3 Likes

Oh that will make it so much easier to untangle my template mixups.

1 Like

This is that we really, really want Κ•β—”Ο–β—”Κ”

2 Likes

Hehe. I have improved this further today, fixed a fair amount of smaller error related glitches. Funny how such a boring topic could excite me so much …

5 Likes

This is awesome! Thanks a ton!

Oh, and if you don’t like the colours, you can now also add your own template for this error view.

Nice :slight_smile:

1 Like