@@ -276,7 +276,7 @@ func testAccCheckInvokeActionInvocationType(ctx context.Context, functionName, i
276
276
277
277
output , err := conn .Invoke (ctx , input )
278
278
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 )
280
280
}
281
281
282
282
// For async invocations, we just verify the request was accepted
@@ -311,7 +311,7 @@ func testAccCheckInvokeActionLogType(ctx context.Context, functionName, inputJSO
311
311
312
312
output , err := conn .Invoke (ctx , input )
313
313
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 )
315
315
}
316
316
317
317
if output .FunctionError != nil {
@@ -343,7 +343,7 @@ func testAccCheckInvokeActionClientContext(ctx context.Context, functionName, in
343
343
344
344
output , err := conn .Invoke (ctx , input )
345
345
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 )
347
347
}
348
348
349
349
if output .FunctionError != nil {
0 commit comments