1
0
mirror of https://github.com/taigrr/yq synced 2025-01-18 04:53:17 -08:00

Log out original error if removing temporary file failed

This commit is contained in:
Mike Farah 2019-12-23 12:09:38 +11:00
parent 3f36a18791
commit 27604289f4

1
yq.go
View File

@ -583,6 +583,7 @@ func safelyRenameFile(from string, to string) {
removeErr := os.Remove(from)
if removeErr != nil {
log.Errorf("failed removing original file: %s", from)
log.Error(removeErr.Error())
}
}
}