tyler-sommer / stick

A golang port of the Twig templating engine
MIT License
183 stars 36 forks source link

Panic when parsing #7

Closed dave closed 8 years ago

dave commented 8 years ago

I see a panic while parsing this:

{{ foo.bar() }}
panic: reflect: call of reflect.Value.Type on zero Value

... better would be an error.

tyler-sommer commented 8 years ago

Indeed, proper checks need to be performed in the value API, which I haven't gotten around to as yet.

Thanks for the report!

tyler-sommer commented 8 years ago

Hi @davelondon, this specific panic has been fixed. I opened up #11 as a general issue about error handling. I'm going to close this, but as always, please open an issue if you run into any problems! Thanks for your feedback 👍