proc: prefer %q over escaped quoute
This commit is contained in:
parent
38716dcc26
commit
67ef867762
@ -5,13 +5,14 @@ import (
|
|||||||
"debug/dwarf"
|
"debug/dwarf"
|
||||||
"encoding/binary"
|
"encoding/binary"
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/derekparker/delve/dwarf/reader"
|
|
||||||
"go/ast"
|
"go/ast"
|
||||||
"go/constant"
|
"go/constant"
|
||||||
"go/parser"
|
"go/parser"
|
||||||
"go/printer"
|
"go/printer"
|
||||||
"go/token"
|
"go/token"
|
||||||
"reflect"
|
"reflect"
|
||||||
|
|
||||||
|
"github.com/derekparker/delve/dwarf/reader"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Returns the value of the given expression
|
// Returns the value of the given expression
|
||||||
@ -132,7 +133,7 @@ func (scope *EvalScope) evalTypeCast(node *ast.CallExpr) (*Variable, error) {
|
|||||||
}
|
}
|
||||||
typ := resolveTypedef(styp)
|
typ := resolveTypedef(styp)
|
||||||
|
|
||||||
converr := fmt.Errorf("can not convert \"%s\" to %s", exprToString(node.Args[0]), typ.String())
|
converr := fmt.Errorf("can not convert %q to %s", exprToString(node.Args[0]), typ.String())
|
||||||
|
|
||||||
v := newVariable("", 0, styp, scope.Thread)
|
v := newVariable("", 0, styp, scope.Thread)
|
||||||
v.loaded = true
|
v.loaded = true
|
||||||
|
Loading…
Reference in New Issue
Block a user