Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

html/template: panic when executing invalid template #10204

Closed
jstemmer opened this issue Mar 20, 2015 · 0 comments
Closed

html/template: panic when executing invalid template #10204

jstemmer opened this issue Mar 20, 2015 · 0 comments
Milestone

Comments

@jstemmer
Copy link
Contributor

Go version:
go version devel +43dfb87 Fri Mar 20 06:12:41 2015 +0000 linux/amd64

I encountered a panic when trying to call Execute on an invalid html template. I was expecting Execute to return an error instead.

Here's a small example that reproduces the problem:
http://play.golang.org/p/JYqgBAcE1a

and just for comparison, the same code using text/template instead:
http://play.golang.org/p/SRIjN8R942

@minux minux added this to the Go1.5 milestone Mar 20, 2015
@golang golang locked and limited conversation to collaborators Jun 25, 2016
@rsc rsc unassigned robpike Jun 23, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants