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

Fix panic #73

Merged
merged 1 commit into from
Jan 6, 2020
Merged

Fix panic #73

merged 1 commit into from
Jan 6, 2020

Conversation

wzshiming
Copy link
Contributor

@wzshiming wzshiming commented Jan 6, 2020

before

~ kube-prompt
panic: interface conversion: error is *url.Error, not *errors.StatusError

goroutine 1 [running]:
github.com/c-bata/kube-prompt/kube.NewCompleter(0x1ea2a40, 0xc0000fde00, 0xe656a23892ca10dd)
/Users/xx/go/src/github.com/c-bata/kube-prompt/kube/completer.go:40 +0x486
main.main()
/Users/xx/go/src/github.com/c-bata/kube-prompt/main.go:23 +0x37

after

~ kube-prompt
error Get https://192.168.64.7:8443/api/v1/namespaces: dial tcp 192.168.64.7:8443: i/o timeout

## before
> ~ kube-prompt
panic: interface conversion: error is *url.Error, not *errors.StatusError

goroutine 1 [running]:
github.com/c-bata/kube-prompt/kube.NewCompleter(0x1ea2a40, 0xc0000fde00, 0xe656a23892ca10dd)
        /Users/xx/go/src/github.com/c-bata/kube-prompt/kube/completer.go:40 +0x486
main.main()
        /Users/xx/go/src/github.com/c-bata/kube-prompt/main.go:23 +0x37

## after
> ~ kube-prompt
error Get https://192.168.64.7:8443/api/v1/namespaces: dial tcp 192.168.64.7:8443: i/o timeout
Copy link
Owner

@c-bata c-bata left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oh! Thank you for your contribution!

@c-bata c-bata merged commit ebb7c45 into c-bata:master Jan 6, 2020
@ZedYeung
Copy link

could we have a new release? @c-bata

@c-bata
Copy link
Owner

c-bata commented Feb 10, 2021

@ZedYeung Thank you for your remind! I've just released v1.0.11.
https://github.com/c-bata/kube-prompt/releases/tag/v1.0.11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants