Open cmawhorter opened 8 years ago
If a mount constraint is configured and not met, fancy serve will die with error Error: E.bubble callback called twice.
fancy serve
Error: E.bubble callback called twice
It should instead output a friendly message that some content does not match a configured constraint. (Ideally it'd include the exact config line).
Repro:
{ "data": { "mount": { "blog": { "route": "^/blog/.*", "(author|title)": "^(.{10,}|.{0})$", "body": "!<a[^>]+?href=\"http:[^\"]+?\"" } } } }
// ./content/data/blog/whatever.html <meta key="route" value="/some-blog-post">
<meta key="author" value="something">
The error being displayed is a bug but correct messages are output via logger but at the trace level. This log should probably be a warn so that it doesn't require verbose to see.
If a mount constraint is configured and not met,
fancy serve
will die with errorError: E.bubble callback called twice
.It should instead output a friendly message that some content does not match a configured constraint. (Ideally it'd include the exact config line).
Repro:
<meta key="author" value="something">