Skip to content

Commit

Permalink
helper/resource: Add final sweeper error to logs (#983)
Browse files Browse the repository at this point in the history
  • Loading branch information
gdavison committed Jun 15, 2022
1 parent 6e2b98d commit 4d7a266
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .changelog/983.txt
@@ -0,0 +1,3 @@
```release-note:bug
helper/resource: Ensured errors are always logged.
```
1 change: 1 addition & 0 deletions helper/resource/testing.go
Expand Up @@ -237,6 +237,7 @@ func runSweeperWithRegion(region string, s *Sweeper, sweepers map[string]*Sweepe
depSweeper, ok := sweepers[dep]

if !ok {
log.Printf("[ERROR] Sweeper (%s) has dependency (%s), but that sweeper was not found", s.Name, dep)
return fmt.Errorf("sweeper (%s) has dependency (%s), but that sweeper was not found", s.Name, dep)
}

Expand Down

0 comments on commit 4d7a266

Please sign in to comment.