mirror of
https://github.com/go-delve/delve.git
synced 2025-10-28 04:35:19 +08:00
Changed api.Variable to have a machine readable value
The new contents of api.Variable are documented in proc/variables.go. Implements #243
This commit is contained in:
@ -707,9 +707,9 @@ func (dbp *Process) getGoInformation() (ver GoVersion, isextld bool, err error)
|
||||
return
|
||||
}
|
||||
|
||||
ver, ok := parseVersionString(vv.Value)
|
||||
ver, ok := parseVersionString(vv.Value.(string))
|
||||
if !ok {
|
||||
err = fmt.Errorf("Could not parse version number: %s\n", vv.Value)
|
||||
err = fmt.Errorf("Could not parse version number: %v\n", vv.Value)
|
||||
return
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user