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: Must is bust #2545

Closed
rsc opened this issue Dec 9, 2011 · 1 comment
Closed

html/template: Must is bust #2545

rsc opened this issue Dec 9, 2011 · 1 comment

Comments

@rsc
Copy link
Contributor

rsc commented Dec 9, 2011

// Must panics if err is non-nil in the same way as template.Must.
func Must(t *Template, err error) *Template {
    t.text = template.Must(t.text, err)
    return t
}

it panics in a different way; when err != nil, t is usually nil,
so the code never reaches template.Must.
@robpike
Copy link
Contributor

robpike commented Dec 9, 2011

Comment 1:

This issue was closed by revision 5912869.

Status changed to Fixed.

@rsc rsc added fixed labels Dec 9, 2011
@golang golang locked and limited conversation to collaborators Jun 24, 2016
@rsc rsc unassigned robpike Jun 22, 2022
This issue was closed.
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

3 participants