• Rob Pike's avatar
    text/template: add back pointer to Nodes for better error generation · 1ad1c0bf
    Rob Pike authored
    ErrorContext now has all the information it needs from the Node,
    rather than depending on the template that contains it. This makes
    it easier for html/template to generate correct locations in its
    error messages.
    
    Updated html/template to use this ability where it is easy, which is
    not everywhere, but more work can probably push it through.
    
    Fixes #8577.
    
    LGTM=adg
    R=golang-codereviews, adg
    CC=golang-codereviews
    https://golang.org/cl/130620043
    1ad1c0bf
Name
Last commit
Last update
api Loading commit data...
doc Loading commit data...
include Loading commit data...
lib Loading commit data...
misc Loading commit data...
src Loading commit data...
test Loading commit data...
.hgignore Loading commit data...
.hgtags Loading commit data...
AUTHORS Loading commit data...
CONTRIBUTORS Loading commit data...
LICENSE Loading commit data...
PATENTS Loading commit data...
README Loading commit data...
favicon.ico Loading commit data...
robots.txt Loading commit data...