]> Cypherpunks repositories - gostls13.git/commit
template: fix error checking on execute without parse
authorScott Lawrence <bytbox@gmail.com>
Mon, 31 Oct 2011 23:07:17 +0000 (16:07 -0700)
committerRob Pike <r@golang.org>
Mon, 31 Oct 2011 23:07:17 +0000 (16:07 -0700)
commitcae23f036ac639141153a73551bcabbb7169e9e0
tree4cfa42e94d779d9b9017c0d159c26ce63770f7a7
parent92926f54722ce3e67765e440d0d6e5ef6da7474b
template: fix error checking on execute without parse

Fixed error checking in exec.go to give a sensible error message when
execution is attempted before a successful parse (rather than an
outright panic).

R=r
CC=golang-dev
https://golang.org/cl/5306065
src/pkg/exp/template/html/escape_test.go
src/pkg/template/exec.go