commonOp.respondErr

geesefs-0-30-9
Aaron Jacobs 2015-05-05 09:57:41 +10:00
parent ea5acc6f08
commit 06b6ec27f5
1 changed files with 4 additions and 2 deletions

View File

@ -201,14 +201,16 @@ func (o *commonOp) respondErr(err error) {
panic("Expect non-nil here.")
}
o.report(err)
o.Logf(
"-> (%s) error: %v",
o.op.ShortDesc(),
err)
// Send a response to the kernel.
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