1
0
Fork 0
mirror of https://github.com/postmannen/ctrl.git synced 2024-12-14 12:37:31 +00:00

cleaned up os.Remove log

This commit is contained in:
postmannen 2022-12-31 06:02:26 +01:00
parent ae6058d0af
commit a77d1ad562

View file

@ -932,7 +932,7 @@ func copyDstSubProcFunc(proc process, cia copyInitialData, message Message, canc
// Remove the backup file.
err = os.Remove(backupOriginalFileName)
if err != nil {
if err != nil && !os.IsNotExist(err) {
er := fmt.Errorf("error: copyDstSubProcFunc: remove of backup of original file failed: %v", err)
proc.errorKernel.errSend(proc, message, er)
}