From 27604289f41a8b18c4a9d3f749d854d81b0653d8 Mon Sep 17 00:00:00 2001 From: Mike Farah Date: Mon, 23 Dec 2019 12:09:38 +1100 Subject: [PATCH] Log out original error if removing temporary file failed --- yq.go | 1 + 1 file changed, 1 insertion(+) diff --git a/yq.go b/yq.go index 345706fa..d24d44c0 100644 --- a/yq.go +++ b/yq.go @@ -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()) } } }