Skip to content

Commit 4ebbec7

Browse files
committed
Do wrapping
1 parent 9fa3654 commit 4ebbec7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

internal/service/lambda/invoke_action_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,7 @@ func testAccCheckInvokeActionInvocationType(ctx context.Context, functionName, i
276276

277277
output, err := conn.Invoke(ctx, input)
278278
if err != nil {
279-
return fmt.Errorf("Failed to invoke Lambda function %s with invocation type %s: %s", functionName, string(invocationType), err)
279+
return fmt.Errorf("Failed to invoke Lambda function %s with invocation type %s: %w", functionName, string(invocationType), err)
280280
}
281281

282282
// For async invocations, we just verify the request was accepted
@@ -311,7 +311,7 @@ func testAccCheckInvokeActionLogType(ctx context.Context, functionName, inputJSO
311311

312312
output, err := conn.Invoke(ctx, input)
313313
if err != nil {
314-
return fmt.Errorf("Failed to invoke Lambda function %s with log type %s: %s", functionName, string(logType), err)
314+
return fmt.Errorf("Failed to invoke Lambda function %s with log type %s: %w", functionName, string(logType), err)
315315
}
316316

317317
if output.FunctionError != nil {
@@ -343,7 +343,7 @@ func testAccCheckInvokeActionClientContext(ctx context.Context, functionName, in
343343

344344
output, err := conn.Invoke(ctx, input)
345345
if err != nil {
346-
return fmt.Errorf("Failed to invoke Lambda function %s with client context: %s", functionName, err)
346+
return fmt.Errorf("Failed to invoke Lambda function %s with client context: %w", functionName, err)
347347
}
348348

349349
if output.FunctionError != nil {

0 commit comments

Comments
 (0)