Skip to content
This repository was archived by the owner on Dec 4, 2023. It is now read-only.

Commit aad9a3e

Browse files
author
Tracy Boehrer
committed
Changed the order of sendTraceActivity in AdapterWithErrorHandler.
1 parent 702be57 commit aad9a3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

libraries/bot-integration-core/src/main/java/com/microsoft/bot/integration/AdapterWithErrorHandler.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ public AdapterWithErrorHandler(Configuration withConfiguration, ConversationStat
6262

6363
return turnContext
6464
.sendActivities(MessageFactory.text(ERROR_MSG_ONE), MessageFactory.text(ERROR_MSG_TWO))
65-
.thenCompose(resourceResponse -> {
65+
.thenCompose(resourceResponse -> sendTraceActivity(turnContext, exception))
66+
.thenCompose(stageResult -> {
6667
if (withConversationState != null) {
6768
// Delete the conversationState for the current conversation to prevent the
6869
// bot from getting stuck in a error-loop caused by being in a bad state.
@@ -75,8 +76,7 @@ public AdapterWithErrorHandler(Configuration withConfiguration, ConversationStat
7576
});
7677
}
7778
return CompletableFuture.completedFuture(null);
78-
})
79-
.thenCompose(stageResult -> sendTraceActivity(turnContext, exception));
79+
});
8080
});
8181
}
8282

0 commit comments

Comments
 (0)