From 618b8edad7e009f92c813a82ff3f3b55905e7f27 Mon Sep 17 00:00:00 2001 From: Elie Date: Fri, 12 Mar 2021 16:47:05 +0100 Subject: [PATCH] Change error message to avoid unrelated error grouping on sentry --- pkg/driftctl.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/driftctl.go b/pkg/driftctl.go index c298489c..ffc7d698 100644 --- a/pkg/driftctl.go +++ b/pkg/driftctl.go @@ -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(