From c30ca0fdc3fba301f3e7c3947b6101b7d07fb9d3 Mon Sep 17 00:00:00 2001 From: Evan Lezar Date: Thu, 17 Oct 2024 15:46:49 +0200 Subject: [PATCH] Fix typo in error message Signed-off-by: Evan Lezar --- internal/lookup/symlinks/symlink.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/lookup/symlinks/symlink.go b/internal/lookup/symlinks/symlink.go index 991d47cb..1929aaa9 100644 --- a/internal/lookup/symlinks/symlink.go +++ b/internal/lookup/symlinks/symlink.go @@ -25,7 +25,7 @@ import ( func Resolve(filename string) (string, error) { info, err := os.Lstat(filename) if err != nil { - return filename, fmt.Errorf("failed to get file info: %v", info) + return filename, fmt.Errorf("failed to get file info: %w", err) } if info.Mode()&os.ModeSymlink == 0 { return filename, nil