samvincent / jekyll-haml

HAML html converter for Jekyll
MIT License
88 stars 40 forks source link

unobfuscate some errors #29

Closed pedrozath closed 6 years ago

pedrozath commented 6 years ago

I was having this error:

Liquid Exception: undefined method `data' for #<Jekyll::HamlPartialTag:0x007ffa658eb1f8> in portfolio.coffee

That wasn't the original error from my side, but actually an error from the error message while trying to access the method data inside a partial. That was obfuscating the true error from my side.

So solved this by breaking the error message in 2 different lines. Its not the perfect fix, but its better than the current.