Skip to content

Commit ad4620d

Browse files
Merge branch 'main' into patch-1
2 parents 8e3f855 + 96ab249 commit ad4620d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

events/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ This package provides input types for Lambda functions that process AWS events.
4646

4747
[Config Events](README_Config.md)
4848

49-
[Connect Events][README_Connect.md]
49+
[Connect Events](README_Connect.md)
5050

5151
[DynamoDB Events](README_DynamoDB.md)
5252

lambda/invoke_loop.go

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import (
66
"context"
77
"encoding/json"
88
"fmt"
9+
"log"
910
"strconv"
1011
"time"
1112

@@ -47,8 +48,9 @@ func handleInvoke(invoke *invoke, function *Function) error {
4748
}
4849

4950
if functionResponse.Error != nil {
50-
payload := safeMarshal(functionResponse.Error)
51-
if err := invoke.failure(payload, contentTypeJSON); err != nil {
51+
errorPayload := safeMarshal(functionResponse.Error)
52+
log.Printf("%s", errorPayload)
53+
if err := invoke.failure(errorPayload, contentTypeJSON); err != nil {
5254
return fmt.Errorf("unexpected error occurred when sending the function error to the API: %v", err)
5355
}
5456
if functionResponse.Error.ShouldExit {

0 commit comments

Comments
 (0)