When a Hugo shortcode is unclosed with }} and one has hugo server running it reports the following error:
Rebuild failed:
"/home/somelong/path/some-file.md:27:184": unrecognized character in shortcode action: U+003E '>'. Note: Parameters with non-alphanumeric args must be quoted
Wile the report is not inaccurate, it would be more useful to directly declare that the shortcode was not closed… I’m curious is this sort of thing possible in Hugo — smarter (more contextual) error messages? I went hunting for the U+003E character only to find I needed actually to add some }}.
I think that in general we provide pretty good (contextual) error messges in Hugo. In this case you do get the filename and line number and column number, if you run it in server mode you will probably also get a preview of the “problem area” in the error web page.
That said, it can always be better, but I’m not sure that your particular example is worth the added logic. The error message is produced here{