]> Cypherpunks repositories - gostls13.git/commit
text/template: towards better errors
authorRob Pike <r@golang.org>
Fri, 14 Sep 2012 22:25:37 +0000 (15:25 -0700)
committerRob Pike <r@golang.org>
Fri, 14 Sep 2012 22:25:37 +0000 (15:25 -0700)
commit7b7a7a573789c3dd49fc4c1f6e76920a2fd9485e
tree7220c4ab44410e0f7ede0995eae35d84ec5d2020
parent5c5c2c8112f774b118b9251eb15c2df529ad454c
text/template: towards better errors
Give the right name for errors, and add a test to check we're
getting the errors we expect.
Also fix an ordering bug (calling add after stopParse) that
caused a nil indirection rather than a helpful error.
Fixes #3280.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/6520043
src/pkg/text/template/parse/parse.go
src/pkg/text/template/parse/parse_test.go