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

An error on strconv.Atoi will contain strconv.ParseInt instead of strconv.Atoi #16980

Closed
DirkWillem opened this issue Sep 3, 2016 · 1 comment
Milestone

Comments

@DirkWillem
Copy link

Please answer these questions before submitting your issue. Thanks!

What version of Go are you using (go version)?

1.6.2 darwin/amd64, the version running on the playground

What operating system and processor architecture are you using (go env)?

Mac OS X 10.11 "El Capitan", amd64

What did you do?

Go Playground link

package main

import (
    "fmt"
    "strconv"
)

func main() {
    fmt.Println(strconv.Atoi("Invalid integer"))
}

What did you expect to see?

strconv.Atoi: parsing "Invalid integer": invalid syntax

What did you see instead?

strconv.ParseInt: parsing "Invalid integer": invalid syntax
@dsnet dsnet added this to the Go1.8 milestone Sep 3, 2016
@gopherbot
Copy link
Contributor

CL https://golang.org/cl/28474 mentions this issue.

jessfraz added a commit to jessfraz/kubernetes that referenced this issue Dec 8, 2016
The error message check was incorrect when Go fixed
golang/go#16980 in Go1.8

Signed-off-by: Jess Frazelle <acidburn@google.com>
@golang golang locked and limited conversation to collaborators Sep 4, 2017
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