Skip to content
This repository has been archived by the owner on Mar 18, 2022. It is now read-only.

Uncaught error in attributes when not string #45

Open
alexloi opened this issue Aug 10, 2013 · 0 comments
Open

Uncaught error in attributes when not string #45

alexloi opened this issue Aug 10, 2013 · 0 comments

Comments

@alexloi
Copy link

alexloi commented Aug 10, 2013

Reproduce like so:
This works:
!=CDN('/images/brand/logo-hi-def.png', {'class': 'sh-logo'})

This fails without a clear error message:
!=CDN('/images/brand/logo-hi-def.png', {class: 'sh-logo'})

I guess this should still fail, I'll add checking if the attribute is a string and fail with a readable error message cause this specific use case might happen a lot (simple typo).

alexloi added a commit to alexloi/express-cdn that referenced this issue Aug 10, 2013
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant