moul / protoc-gen-gotemplate

:open_file_folder: generic protocol generator based on golang's text/template (grpc/protobuf)
https://manfred.life/protoc-gen-gotemplate
MIT License
437 stars 70 forks source link

Template errors don't return, just fail #97

Open clintberry opened 6 years ago

clintberry commented 6 years ago

I've noticed when I have errors in my template, the code fires and completes but never prints an error. Is this behavior others are seeing? I started to dive into the code and it was a bit over my head, but I will keep trucking.

moul commented 6 years ago

Hi,

Can you share an example?

On 21 Jun 2018, at 23:19, Clint Berry notifications@github.com wrote:

I've noticed when I have errors in my template, the code fires and completes but never prints an error. Is this behavior others are seeing? I started to dive into the code and it was a bit over my head, but I will keep trucking.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/moul/protoc-gen-gotemplate/issues/97, or mute the thread https://github.com/notifications/unsubscribe-auth/AAFvTQ1x9eyDwRj-V7Gzsj_C9UkZ3Sopks5t_A3cgaJpZM4UyyLQ.

sigmonsays commented 6 years ago

I ran into this also. anything you do that references a template variable that doesn't exist.