From 3b35f44eba466651c7f091e73dc81de944f4a68e Mon Sep 17 00:00:00 2001 From: Anis Elleuch Date: Sat, 9 Jan 2016 15:46:52 +0100 Subject: [PATCH] Fix ls error msg --- pkg/client/fs/fs-common.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkg/client/fs/fs-common.go b/pkg/client/fs/fs-common.go index e5300575..0273f9f2 100644 --- a/pkg/client/fs/fs-common.go +++ b/pkg/client/fs/fs-common.go @@ -62,11 +62,11 @@ func (f *fsClient) fsStat() (os.FileInfo, *probe.Error) { if e != nil { if os.IsPermission(e) { if runtime.GOOS == "windows" { - return f.handleWindowsSymlinks(fpath) + return f.handleWindowsSymlinks(f.PathURL.Path) } - return nil, probe.NewError(client.PathInsufficientPermission{Path: fpath}) + return nil, probe.NewError(client.PathInsufficientPermission{Path: f.PathURL.Path}) } - err := f.toClientError(e, fpath) + err := f.toClientError(e, f.PathURL.Path) return nil, err.Trace(fpath) } st, e := os.Stat(fpath)