mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-20 06:31:55 +01: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)
|
||||
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
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user