From 0175f113880704ad859d16fbdee9d1e50b769232 Mon Sep 17 00:00:00 2001 From: Harshavardhana Date: Thu, 8 Oct 2015 13:59:29 -0700 Subject: [PATCH] In case of errors not all the cases have content.Content as non nil - fixes #1166 --- sorted-list.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sorted-list.go b/sorted-list.go index 7d349c5b..ce0c432c 100644 --- a/sorted-list.go +++ b/sorted-list.go @@ -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()