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

text/template: wrong name in error message #3280

Closed
rsc opened this issue Mar 11, 2012 · 3 comments
Closed

text/template: wrong name in error message #3280

rsc opened this issue Mar 11, 2012 · 3 comments
Milestone

Comments

@rsc
Copy link
Contributor

@rsc rsc commented Mar 11, 2012

http://play.golang.org/p/9nx1qVOyfT

The error should say main:4, but it says foo:4.
The {{define "foo"}} has replaced the file name but
not reset the line number.  (Keeping the original file
name would be a more helpful error than resetting
the line number.)
@rsc
Copy link
Contributor Author

@rsc rsc commented Mar 26, 2012

Comment 1:

For after Go 1 now.

Labels changed: added priority-later, removed priority-go1.

@rsc
Copy link
Contributor Author

@rsc rsc commented Sep 12, 2012

Comment 2:

Labels changed: added go1.1.

@robpike
Copy link
Contributor

@robpike robpike commented Sep 14, 2012

Comment 3:

This issue was closed by revision 7b7a7a5.

Status changed to Fixed.

@rsc rsc added fixed labels Sep 14, 2012
@rsc rsc added this to the Go1.1 milestone Apr 14, 2015
@rsc rsc removed the go1.1 label Apr 14, 2015
@golang golang locked and limited conversation to collaborators Jun 24, 2016
This issue was closed.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.