mirror of
https://github.com/NVIDIA/nvidia-container-toolkit
synced 2024-11-22 00:08:11 +00:00
Fix typo in error message
Signed-off-by: Evan Lezar <elezar@nvidia.com>
This commit is contained in:
parent
ec8dfaf779
commit
c30ca0fdc3
@ -25,7 +25,7 @@ import (
|
|||||||
func Resolve(filename string) (string, error) {
|
func Resolve(filename string) (string, error) {
|
||||||
info, err := os.Lstat(filename)
|
info, err := os.Lstat(filename)
|
||||||
if err != nil {
|
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 {
|
if info.Mode()&os.ModeSymlink == 0 {
|
||||||
return filename, nil
|
return filename, nil
|
||||||
|
Loading…
Reference in New Issue
Block a user