mirror of
https://github.com/goharbor/harbor.git
synced 2024-10-01 23:07:39 +02:00
fix error handlering in job notification
Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
e017294f71
commit
ddec7bd645
@ -98,7 +98,7 @@ func (h *Handler) HandleReplicationTask() {
|
|||||||
log.Debugf("received replication task status update event: task-%d, status-%s", h.id, h.status)
|
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 {
|
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)
|
log.Errorf("Failed to update replication task status, id: %d, status: %s", h.id, h.status)
|
||||||
h.HandleInternalServerError(err.Error())
|
h.SendInternalServerError(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user