Replies: 1 comment
-
|
Love this, but would also love to see snippets, and their params, become first-class citizens in Liquid. The alternative would be to keep this in pure Liquid and we can style the error message and output it to the browser but that sucks. Some things to note about the code:
Are you thinking the usefulness of creating a custom element is that:
Outputting Liquid errors in the console feels weird, but it's also the next best thing from having absolutely no error logging. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Liquid is notorious for failing silently and hard to debug why or where something is going wrong.
Thoughts about an
liquid-errorcomponent that you can use throughout other components and will populate the page with hidden<liquid-error>elements that will then automaticallyconsole.error()a message?Something like this
and then you could use it in a component like:
Beta Was this translation helpful? Give feedback.
All reactions