]> Cypherpunks repositories - gostls13.git/commit
text/template: handle panic values that are not errors.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Mon, 9 Jan 2012 20:54:31 +0000 (12:54 -0800)
committerRob Pike <r@golang.org>
Mon, 9 Jan 2012 20:54:31 +0000 (12:54 -0800)
commitf5d024a74695510fcb0890807849ec95253a56cd
tree57ed53cb8d689169b80f4f439922c1fcabe0ad8d
parent793768e9d550d15f6b07eac7e587a090ffad0d41
text/template: handle panic values that are not errors.

The recover code assumes that the panic() argument was
an error, but it is usually a simple string.
Fixes #2663.

R=golang-dev, r, r, gri
CC=golang-dev, remy
https://golang.org/cl/5527046
src/pkg/text/template/exec.go