fix: Correctly handle recoverable AWS scanning errors (#2726)

This commit is contained in:
Liam Galvin
2022-08-16 16:00:44 +01:00
committed by GitHub
parent 9c92e3d185
commit fefe7c4a7b
3 changed files with 5 additions and 4 deletions

View File

@@ -150,8 +150,9 @@ func Run(ctx context.Context, opt flag.Options) error {
for _, e := range aerr.Errors() {
log.Logger.Warnf("Adapter error: %s", e)
}
} else {
return fmt.Errorf("aws scan error: %w", err)
}
return fmt.Errorf("aws scan error: %w", err)
}
r = report.New(cloud.ProviderAWS, opt.Account, opt.Region, results.GetFailed(), opt.Services)
} else {