]> Cypherpunks repositories - gostls13.git/commit
text/template: add ExecError type and return it from Execute on error
authorRob Pike <r@golang.org>
Thu, 27 Aug 2015 06:28:52 +0000 (16:28 +1000)
committerRob Pike <r@golang.org>
Thu, 27 Aug 2015 06:40:56 +0000 (06:40 +0000)
commitbe33e203edac1afa4a3bf1087f3589a82a7e3a86
treef5b1324a7e91853c085a48674f123387364c4acc
parentd497eeb00540cebe5fb875570a06cc0083e8016b
text/template: add ExecError type and return it from Execute on error

Useful to discriminate evaluation errors from write errors.

Fixes #11898.

Change-Id: I907d339a3820e887872d78e0e2d8fd011451fd19
Reviewed-on: https://go-review.googlesource.com/13957
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/text/template/exec.go
src/text/template/exec_test.go