0
0
mirror of https://github.com/thegeeklab/wp-s3-action.git synced 2024-11-25 10:20:39 +00:00

handle errors

This commit is contained in:
Nathan LaFreniere 2015-11-13 15:59:34 -08:00
parent ca7a275625
commit 927b3c3434

View File

@ -101,6 +101,10 @@ func NewClient(vargs PluginArgs) AWS {
} }
func (aws *AWS) visit(path string, info os.FileInfo, err error) error { func (aws *AWS) visit(path string, info os.FileInfo, err error) error {
if err != nil {
return err
}
if path == "." { if path == "." {
return nil return nil
} }