• Rob Pike's avatar
    template: better error message for empty templates · 4869996b
    Rob Pike authored
    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 #2594.
    
    R=golang-dev, rsc, r
    CC=golang-dev
    https://golang.org/cl/5498048
    4869996b
Name
Last commit
Last update
..
Makefile Loading commit data...
attr.go Loading commit data...
clone.go Loading commit data...
clone_test.go Loading commit data...
content.go Loading commit data...
content_test.go Loading commit data...
context.go Loading commit data...
css.go Loading commit data...
css_test.go Loading commit data...
doc.go Loading commit data...
error.go Loading commit data...
escape.go Loading commit data...
escape_test.go Loading commit data...
html.go Loading commit data...
html_test.go Loading commit data...
js.go Loading commit data...
js_test.go Loading commit data...
template.go Loading commit data...
transition.go Loading commit data...
url.go Loading commit data...
url_test.go Loading commit data...