tag_attrs could be kinder about mis-formed attributes #1671
Unanswered
BrucePerens
asked this question in
Feature requests & Ideas
Replies: 2 comments
-
That's interesting because in crystal, an assignment returns the value of the value... so I'm surprised that doesn't return But you area right, if we can make the error better, we need to. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Well, this is what it emits:
|
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
-
Sometimes when I write Lucky pages, my head is in HTML space. If I write a mis-formed attribute like:
I end up seeing a lot of macro cybercrud rather than a concise and helpful report. I think the code in
lucky/src/lucky/tags/base_tags.cr
Line 252 in 4cb2108
could be modified to complain if it is processing something other than a tuple.
Beta Was this translation helpful? Give feedback.
All reactions