mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 17:02:49 +03:00
parent
0ae5384115
commit
2e5e59bd00
@ -38,6 +38,9 @@ func getLatestVersion() (*semver.Version, *semver.Version, error) {
|
||||
if err != nil {
|
||||
return nil, nil, errors.Wrap(err, "decoding update check response")
|
||||
}
|
||||
if response.Latest == nil && response.PreRelease == nil {
|
||||
return nil,nil, fmt.Errorf("expected version info not found at %s", updateCheckURL)
|
||||
}
|
||||
|
||||
return response.Latest, response.PreRelease, nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user