Change error message to avoid unrelated error grouping on sentry

main
Elie 2021-03-12 16:47:05 +01:00
parent 14cb69a9bd
commit 618b8edad7
No known key found for this signature in database
GPG Key ID: 399AF69092C727B6
1 changed files with 1 additions and 1 deletions

View File

@ -28,7 +28,7 @@ func NewDriftCTL(remoteSupplier resource.Supplier, iacSupplier resource.Supplier
func (d DriftCTL) Run() (*analyser.Analysis, error) {
remoteResources, resourcesFromState, err := d.scan()
if err != nil {
return nil, errors.Wrap(err, "Unable to scan resources")
return nil, errors.WithStack(err)
}
middleware := middlewares.NewChain(