fix misuse of a variable

This commit is contained in:
zyx 2020-06-08 22:23:12 +08:00
parent 9178966aed
commit 7b0cd490b7

View File

@ -189,7 +189,7 @@ func (m *mirrorJob) Run(managerChan chan<- jobMessage, semaphore chan empty) err
syncErr = errors.New("killed by manager")
}
if termErr != nil {
logger.Errorf("failed to terminate provider %s: %s", m.Name(), err.Error())
logger.Errorf("failed to terminate provider %s: %s", m.Name(), termErr.Error())
return termErr
}