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: poor error message for malformed comment #6022

Closed
gopherbot opened this issue Aug 3, 2013 · 2 comments
Closed

text/template: poor error message for malformed comment #6022

gopherbot opened this issue Aug 3, 2013 · 2 comments
Assignees
Milestone

Comments

@gopherbot
Copy link

@gopherbot gopherbot commented Aug 3, 2013

by bolin.huang:

The post is here: 
https://groups.google.com/forum/#!topic/golang-nuts/TcX9LaZR6w8

I suppose modify the error message or just discard the spaces.

go version: go1.1.1 darwin/amd64
@robpike
Copy link
Contributor

@robpike robpike commented Aug 4, 2013

Comment 1:

The message tells you what the problem is (unclosed comment) and where it is.
Unclosed comments in general cause parsing confusion; this case is not exceptional. In
fact, one could argue the parser is doing well to give this much information.
If there's any place to fix, it's the documentation.

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

Owner changed to @robpike.

Status changed to Accepted.

@robpike
Copy link
Contributor

@robpike robpike commented Aug 9, 2013

Comment 3:

This issue was closed by revision b7eb0e5.

Status changed to Fixed.

@gopherbot gopherbot added fixed labels Aug 9, 2013
@rsc rsc added this to the Go1.2 milestone Apr 14, 2015
@rsc rsc removed the go1.2maybe 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.