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)