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

Errors in strconv should return the package name (and function name) #2548

Closed
gopherbot opened this issue Dec 10, 2011 · 3 comments
Closed
Milestone

Comments

@gopherbot
Copy link
Contributor

by raul.san@sent.com:

Functions in strconv should return "strconv.[function]: " together to the
error message to know where has been got that error.

I had a problem in my code by that. My program exited (some times )with the next error
message:

parsing "in": invalid syntax

but to find that it was by strconv.Atoi was very hard because looking for "in"
into a files with more than 1000 lines is a waste of time ;)
In fact, at the beginning, I thought that it was by the template parser but it didn't,
my second option was looking in code related to flag and nothing.

Resuming, it has been a waste of time that could be solved if that error had:

strconv.[Function] besides of the error message.
@robpike
Copy link
Contributor

robpike commented Dec 10, 2011

Comment 1:

Owner changed to @robpike.

Status changed to Accepted.

@rsc
Copy link
Contributor

rsc commented Dec 12, 2011

Comment 2:

Labels changed: added priority-go1.

@robpike
Copy link
Contributor

robpike commented Dec 13, 2011

Comment 3:

This issue was closed by revision 02f6719.

Status changed to Fixed.

@rsc rsc added this to the Go1 milestone Apr 10, 2015
@rsc rsc removed the priority-go1 label Apr 10, 2015
@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