commonOp.respondErr
parent
ea5acc6f08
commit
06b6ec27f5
|
@ -201,14 +201,16 @@ func (o *commonOp) respondErr(err error) {
|
||||||
panic("Expect non-nil here.")
|
panic("Expect non-nil here.")
|
||||||
}
|
}
|
||||||
|
|
||||||
o.report(err)
|
|
||||||
|
|
||||||
o.Logf(
|
o.Logf(
|
||||||
"-> (%s) error: %v",
|
"-> (%s) error: %v",
|
||||||
o.op.ShortDesc(),
|
o.op.ShortDesc(),
|
||||||
err)
|
err)
|
||||||
|
|
||||||
|
// Send a response to the kernel.
|
||||||
o.bazilReq.RespondError(err)
|
o.bazilReq.RespondError(err)
|
||||||
|
|
||||||
|
// Report back to the connection that we are finished.
|
||||||
|
o.finish(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Respond with the supplied response struct, which must be accepted by a
|
// Respond with the supplied response struct, which must be accepted by a
|
||||||
|
|
Loading…
Reference in New Issue