mirror of https://github.com/goccy/go-json.git
Fix error message
This commit is contained in:
parent
48b6fe21c6
commit
04da39a443
|
@ -88,7 +88,7 @@ func encodeRun(ctx *encodeRuntimeContext, b []byte, codeSet *opcodeSet, opt Enco
|
||||||
for {
|
for {
|
||||||
switch code.op {
|
switch code.op {
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("failed to handle opcode. doesn't implement %s", code.op)
|
return nil, fmt.Errorf("encoder: opcode %s has not been implemented", code.op)
|
||||||
case opPtr:
|
case opPtr:
|
||||||
ptr := load(ctxptr, code.idx)
|
ptr := load(ctxptr, code.idx)
|
||||||
code = code.next
|
code = code.next
|
||||||
|
|
|
@ -21,7 +21,7 @@ func encodeRunEscaped(ctx *encodeRuntimeContext, b []byte, codeSet *opcodeSet, o
|
||||||
for {
|
for {
|
||||||
switch code.op {
|
switch code.op {
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("failed to handle opcode. doesn't implement %s", code.op)
|
return nil, fmt.Errorf("encoder (escaped): opcode %s has not been implemented", code.op)
|
||||||
case opPtr:
|
case opPtr:
|
||||||
ptr := load(ctxptr, code.idx)
|
ptr := load(ctxptr, code.idx)
|
||||||
code = code.next
|
code = code.next
|
||||||
|
|
|
@ -20,7 +20,7 @@ func encodeRunEscapedIndent(ctx *encodeRuntimeContext, b []byte, codeSet *opcode
|
||||||
for {
|
for {
|
||||||
switch code.op {
|
switch code.op {
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("failed to handle opcode. doesn't implement %s", code.op)
|
return nil, fmt.Errorf("encoder (escaped+indent): opcode %s has not been implemented", code.op)
|
||||||
case opPtr:
|
case opPtr:
|
||||||
ptr := load(ctxptr, code.idx)
|
ptr := load(ctxptr, code.idx)
|
||||||
code = code.next
|
code = code.next
|
||||||
|
|
|
@ -20,7 +20,7 @@ func encodeRunIndent(ctx *encodeRuntimeContext, b []byte, codeSet *opcodeSet, op
|
||||||
for {
|
for {
|
||||||
switch code.op {
|
switch code.op {
|
||||||
default:
|
default:
|
||||||
return nil, fmt.Errorf("failed to handle opcode. doesn't implement %s", code.op)
|
return nil, fmt.Errorf("encoder (indent): opcode %s has not been implemented", code.op)
|
||||||
case opPtr:
|
case opPtr:
|
||||||
ptr := load(ctxptr, code.idx)
|
ptr := load(ctxptr, code.idx)
|
||||||
code = code.next
|
code = code.next
|
||||||
|
|
Loading…
Reference in New Issue