mirror of
https://github.com/thegeeklab/wp-s3-action.git
synced 2024-11-22 01:00:40 +00:00
handle errors
This commit is contained in:
parent
ca7a275625
commit
927b3c3434
4
main.go
4
main.go
@ -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
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user