Descriptiontemplate: better error message for empty templates
New("x").ParseFiles("y") can result in an empty "x" template.
Make the message clearer that this is the problem. The error
returns from both template packages in this case were
confusing.
I considered making the method use "x" instead of "y" in
this case, but that just made other situations confusing
and harder to explain.
Fixes issue 2594.
Patch Set 1 #Patch Set 2 : diff -r e932eb65eeb5 https://code.google.com/p/go #
MessagesTotal messages: 7
|