Skip to content

Commit fe39735

Browse files
committed
test
1 parent eb7cf0f commit fe39735

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/infra/docs-lambda-index-publisher/Program.cs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ static async Task<string> Handler(SQSEvent ev, ILambdaContext context)
5252
catch (Exception)
5353
{
5454
//Add failed message identifier to the batchItemFailures list
55+
5556
batchItemFailures.Add(new SQSBatchResponse.BatchItemFailure
5657
{
5758
ItemIdentifier = message.MessageId
@@ -148,6 +149,11 @@ static void UpdateLinkIndex(LinkIndex linkIndex, LinkReference linkReference, S3
148149
GitReference = linkReference.Origin.Ref
149150
};
150151

152+
if (repository == "ecs-logging-ruby")
153+
{
154+
throw new Exception("This is a test exception");
155+
}
156+
151157
if (linkIndex.Repositories.TryGetValue(repository, out var existingEntry))
152158
{
153159
var newEntryIsNewer = DateTime.Compare(newEntry.UpdatedAt, existingEntry[branch].UpdatedAt) > 0;

0 commit comments

Comments
 (0)