mirror of
https://github.com/minio/mc.git
synced 2025-11-12 01:02:26 +03:00
In case of errors not all the cases have content.Content as non nil - fixes #1166
This commit is contained in:
@@ -90,8 +90,10 @@ func (sl *sortedList) Create(clnt client.Client, id string) *probe.Error {
|
|||||||
if content.Content.Type.IsDir() && (content.Content.Type&os.ModeSymlink == os.ModeSymlink) {
|
if content.Content.Type.IsDir() && (content.Content.Type&os.ModeSymlink == os.ModeSymlink) {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
errorIf(content.Err.Trace(), fmt.Sprintf("Skipping ‘%s’.", content.Content.Name))
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
errorIf(content.Err.Trace(), fmt.Sprintf("Skipping ‘%s’.", content.Content.Name))
|
errorIf(content.Err.Trace(), "Skipping unknown file.")
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
return content.Err.Trace()
|
return content.Err.Trace()
|
||||||
|
|||||||
Reference in New Issue
Block a user