good morning!!!!

Skip to content
Snippets Groups Projects
Verified Commit 6256ffd7 authored by a's avatar a
Browse files

return error

parent c61ae286
No related branches found
No related tags found
No related merge requests found
Pipeline #29950 failed with stage
in 11 minutes and 13 seconds
......@@ -244,20 +244,20 @@ func (c *callResponder) send(ctx context.Context, env *callEnv) (err error) {
err = json.NewEncoder(e).EncodeWithOption(v.dat, func(eo *json.EncodeOption) {
eo.DisableNewline = true
})
if err != nil {
return
}
}
} else {
e.Null()
}
})
// a json encoding error here is possibly fatal.... try to encode the error, but there are no promises
if err != nil {
e.Field("error", func(e *jx.Encoder) {
codec.EncodeError(e, m.Error)
})
return
}
}
})
if err != nil {
return err
}
}
if env.batch {
enc.ArrEnd()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment