service/debugger: bugfix: error values can not be marshalled (#697)

This commit is contained in:
Alessandro Arzilli
2017-01-10 00:19:42 +01:00
committed by Derek Parker
parent fd1df948fa
commit 4dd627f669
2 changed files with 2 additions and 2 deletions

View File

@ -316,5 +316,5 @@ func (regs Registers) String() string {
type DiscardedBreakpoint struct {
Breakpoint *Breakpoint
Reason error
Reason string
}

View File

@ -135,7 +135,7 @@ func (d *Debugger) Restart() ([]api.DiscardedBreakpoint, error) {
if len(oldBp.File) > 0 {
oldBp.Addr, err = p.FindFileLocation(oldBp.File, oldBp.Line)
if err != nil {
discarded = append(discarded, api.DiscardedBreakpoint{oldBp, err})
discarded = append(discarded, api.DiscardedBreakpoint{oldBp, err.Error()})
continue
}
}