Merge pull request #1169 from harshavardhana/fix-mirror-crash

In case of errors not all the cases have content.Content as non nil -…
This commit is contained in:
Harshavardhana
2015-10-08 14:03:06 -07:00
+3 -1
View File
@@ -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) {
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
}
return content.Err.Trace()