Commit ddec7bd6 authored by wang yan's avatar wang yan
Browse files

fix error handlering in job notification


Signed-off-by: default avatarwang yan <wangyan@vmware.com>
parent e017294f
......@@ -98,7 +98,7 @@ func (h *Handler) HandleReplicationTask() {
log.Debugf("received replication task status update event: task-%d, status-%s", h.id, h.status)
if err := hook.UpdateTask(replication.OperationCtl, h.id, h.rawStatus); err != nil {
log.Errorf("Failed to update replication task status, id: %d, status: %s", h.id, h.status)
h.HandleInternalServerError(err.Error())
h.SendInternalServerError(err)
return
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment