Skip to content

Commit 7a8f3d1

Browse files
authored
Improve error message when adding search attribute fails. (#73)
* Improve error message when adding search attribute fails. Without this, it was impossible to know what request was getting permission denied.
1 parent 5a43f3f commit 7a8f3d1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

scenarios/throughput_stress.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import (
44
"context"
55
"errors"
66
"fmt"
7-
"go.temporal.io/api/workflowservice/v1"
87
"sync/atomic"
98
"time"
109

1110
"go.temporal.io/api/enums/v1"
1211
"go.temporal.io/api/operatorservice/v1"
1312
"go.temporal.io/api/serviceerror"
13+
"go.temporal.io/api/workflowservice/v1"
1414

1515
"github.com/temporalio/omes/loadgen"
1616
"github.com/temporalio/omes/loadgen/throughputstress"
@@ -41,7 +41,7 @@ func (t *tpsExecutor) Run(ctx context.Context, info loadgen.ScenarioInfo) error
4141
})
4242
var svcErr *serviceerror.AlreadyExists
4343
if !errors.As(err, &svcErr) {
44-
return err
44+
return fmt.Errorf("failed adding search attribute: %w", err)
4545
}
4646

4747
// Complain if there are already existing workflows with the provided run id

0 commit comments

Comments
 (0)