From 3d87f02e587bce31f7326f640938c1111cfb729b Mon Sep 17 00:00:00 2001 From: Shoyo Ito <41041296+s4s7@users.noreply.github.com> Date: Fri, 16 Feb 2024 12:08:22 +0900 Subject: [PATCH] fix: log of CalculateCheckSum func (#87) --- internal/util/random.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/util/random.go b/internal/util/random.go index 5b23013..f4b4cab 100644 --- a/internal/util/random.go +++ b/internal/util/random.go @@ -12,7 +12,7 @@ import ( func CalculateCheckSum(filePath string) (string, error) { file, err := ioutil.ReadFile(filePath) if err != nil { - return "", fmt.Errorf("failed read file. filename: %s, err: %w", filePath) + return "", fmt.Errorf("failed read file. filename: %s, err: %w", filePath, err) } hash := md5.Sum(file)