]> Cypherpunks repositories - gostls13.git/commit
text/template/parse: don't show itemType in error messages
authorShenghou Ma <minux.ma@gmail.com>
Mon, 21 Jan 2013 18:48:40 +0000 (02:48 +0800)
committerShenghou Ma <minux.ma@gmail.com>
Mon, 21 Jan 2013 18:48:40 +0000 (02:48 +0800)
commitbee148bf23701f1b82d4d1d1187e3ef60ba724d7
treeede689de6ac4746e4f25c71a9da85640a6508955
parent5b5d3efcf3003de01e0cd8ecb248c9ef72d30b10
text/template/parse: don't show itemType in error messages
so that the user don't need to decipher something like this:
template: main:1: expected %!s(parse.itemType=14) in end; got "|"
now they get this:
template: main:1: unexpected "|" in end

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/7128054
src/pkg/text/template/parse/parse.go