diff --git a/samples/msgext-doc-search-csharp/AdapterWithErrorHandler.cs b/samples/msgext-doc-search-csharp/AdapterWithErrorHandler.cs index 5ac7dfc..81966aa 100644 --- a/samples/msgext-doc-search-csharp/AdapterWithErrorHandler.cs +++ b/samples/msgext-doc-search-csharp/AdapterWithErrorHandler.cs @@ -17,9 +17,9 @@ public AdapterWithErrorHandler(BotFrameworkAuthentication auth, ILogger { // configuration instructions. console.error(`\n [onTurnError] unhandled error: ${error}`); - // Send a message to the user - await context.sendActivity(`The bot encountered an unhandled error:\n ${error.message}`); - await context.sendActivity("To continue to run this bot, please fix the bot source code."); + // Uncomment below commented line for local debugging. + // await context.sendActivity(`The bot encountered an unhandled error:\n ${error.message}`); + // await context.sendActivity("To continue to run this bot, please fix the bot source code."); }; // Create the bot that will handle incoming messages. diff --git a/samples/msgext-multiparam-csharp/AdapterWithErrorHandler.cs b/samples/msgext-multiparam-csharp/AdapterWithErrorHandler.cs index c619c87..2d312a8 100644 --- a/samples/msgext-multiparam-csharp/AdapterWithErrorHandler.cs +++ b/samples/msgext-multiparam-csharp/AdapterWithErrorHandler.cs @@ -17,9 +17,9 @@ public AdapterWithErrorHandler(BotFrameworkAuthentication auth, ILogger { // configuration instructions. console.error(`\n [onTurnError] unhandled error: ${error}`); - // Send a message to the user - await context.sendActivity(`The bot encountered an unhandled error:\n ${error.message}`); - await context.sendActivity("To continue to run this bot, please fix the bot source code."); + // Uncomment below commented line for local debugging. + // await context.sendActivity(`The bot encountered an unhandled error:\n ${error.message}`); + // await context.sendActivity("To continue to run this bot, please fix the bot source code."); }; // Create the bot that will handle incoming messages. diff --git a/samples/msgext-multiparam-ts/src/index.ts b/samples/msgext-multiparam-ts/src/index.ts index e911644..f5f3a15 100644 --- a/samples/msgext-multiparam-ts/src/index.ts +++ b/samples/msgext-multiparam-ts/src/index.ts @@ -44,9 +44,9 @@ const onTurnErrorHandler = async (context: TurnContext, error: Error) => { "TurnError" ); - // Send a message to the user - await context.sendActivity(`The bot encountered unhandled error:\n ${error.message}`); - await context.sendActivity("To continue to run this bot, please fix the bot source code."); + // Uncomment below commented line for local debugging. + // await context.sendActivity(`The bot encountered unhandled error:\n ${error.message}`); + // await context.sendActivity("To continue to run this bot, please fix the bot source code."); }; // Set the onTurnError for the singleton CloudAdapter. diff --git a/samples/msgext-northwind-inventory-action-ts/src/index.ts b/samples/msgext-northwind-inventory-action-ts/src/index.ts index b1f8848..0a2446e 100644 --- a/samples/msgext-northwind-inventory-action-ts/src/index.ts +++ b/samples/msgext-northwind-inventory-action-ts/src/index.ts @@ -44,9 +44,9 @@ const onTurnErrorHandler = async (context: TurnContext, error: Error) => { "TurnError" ); - // Send a message to the user - await context.sendActivity(`The bot encountered unhandled error:\n ${error.message}`); - await context.sendActivity("To continue to run this bot, please fix the bot source code."); + // Uncomment below commented line for local debugging. + // await context.sendActivity(`The bot encountered unhandled error:\n ${error.message}`); + // await context.sendActivity("To continue to run this bot, please fix the bot source code."); }; // Set the onTurnError for the singleton CloudAdapter. diff --git a/samples/msgext-northwind-inventory-csharp/AdapterWithErrorHandler.cs b/samples/msgext-northwind-inventory-csharp/AdapterWithErrorHandler.cs index bd4bc02..779c5a7 100644 --- a/samples/msgext-northwind-inventory-csharp/AdapterWithErrorHandler.cs +++ b/samples/msgext-northwind-inventory-csharp/AdapterWithErrorHandler.cs @@ -21,9 +21,9 @@ public AdapterWithErrorHandler(BotFrameworkAuthentication auth, ILogger { "TurnError" ); - // Send a message to the user - await context.sendActivity(`The bot encountered unhandled error:\n ${error.message}`); - await context.sendActivity("To continue to run this bot, please fix the bot source code."); + // Uncomment below commented line for local debugging. + // await context.sendActivity(`The bot encountered unhandled error:\n ${error.message}`); + // await context.sendActivity("To continue to run this bot, please fix the bot source code."); }; // Set the onTurnError for the singleton CloudAdapter. diff --git a/samples/msgext-product-support-sso-csharp/AdapterWithErrorHandler.cs b/samples/msgext-product-support-sso-csharp/AdapterWithErrorHandler.cs index 83513e5..7ff9df6 100644 --- a/samples/msgext-product-support-sso-csharp/AdapterWithErrorHandler.cs +++ b/samples/msgext-product-support-sso-csharp/AdapterWithErrorHandler.cs @@ -17,9 +17,9 @@ public AdapterWithErrorHandler(BotFrameworkAuthentication auth, ILogger { "TurnError" ); - // Send a message to the user - await context.sendActivity( - `The bot encountered unhandled error:\n ${error.message}` - ); - await context.sendActivity( - "To continue to run this bot, please fix the bot source code." - ); + // Uncomment below commented line for local debugging. + // await context.sendActivity( + // `The bot encountered unhandled error:\n ${error.message}` + // ); + // await context.sendActivity( + // "To continue to run this bot, please fix the bot source code." + // ); }; // Set the onTurnError for the singleton CloudAdapter.