From 927b3c343464f6d82afbc8b8b8fc74525bed3181 Mon Sep 17 00:00:00 2001 From: Nathan LaFreniere Date: Fri, 13 Nov 2015 15:59:34 -0800 Subject: [PATCH] handle errors --- main.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.go b/main.go index af03d7f..43f39f3 100644 --- a/main.go +++ b/main.go @@ -101,6 +101,10 @@ func NewClient(vargs PluginArgs) AWS { } func (aws *AWS) visit(path string, info os.FileInfo, err error) error { + if err != nil { + return err + } + if path == "." { return nil }