Merge pull request #1571 from vadmeste/fix_error_reporting_issue
Fix ls error msg
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user