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

Update error check during VersionCheck #363

Merged
merged 1 commit into from
Feb 5, 2024
Merged

Conversation

DMajrekar
Copy link
Contributor

@DMajrekar DMajrekar commented Feb 5, 2024

Error seen

panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0xaaeaf7]

goroutine 1 [running]:
github.com/civo/cli/config.CivoAPIClient()
        /home/runner/work/cli/cli/config/config.go:275 +0xb7
github.com/civo/cli/config.regionsToFeature()
        /home/runner/work/cli/cli/config/config.go:238 +0x38
github.com/civo/cli/config.loadConfig({0xc000036810, 0x17})
        /home/runner/work/cli/cli/config/config.go:100 +0x41d
github.com/civo/cli/config.ReadConfig()
        /home/runner/work/cli/cli/config/config.go:53 +0x12a
github.com/civo/cli/cmd.init.1()
        /home/runner/work/cli/cli/cmd/root.go:164 +0x738

Copy link
Member

@vishalanarase vishalanarase left a comment

Choose a reason for hiding this comment

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

LGTM

@vishalanarase vishalanarase merged commit 5d91a20 into master Feb 5, 2024
1 check passed
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.

2 participants