From 0650fc594f07261a7e4e3599ddd46ae724d5426c Mon Sep 17 00:00:00 2001 From: BlackBaroness <57033600+BlackBaroness@users.noreply.github.com> Date: Sun, 27 Jul 2025 07:34:56 +0300 Subject: [PATCH] fix: typo in default error messages --- .../kotlin/dev/inmo/tgbotapi/utils/LaunchWithBotLogger.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/LaunchWithBotLogger.kt b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/LaunchWithBotLogger.kt index 4b5125e8f0..328030bbac 100644 --- a/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/LaunchWithBotLogger.kt +++ b/tgbotapi.core/src/commonMain/kotlin/dev/inmo/tgbotapi/utils/LaunchWithBotLogger.kt @@ -13,7 +13,7 @@ import kotlin.coroutines.EmptyCoroutineContext context(bot: TelegramBot) fun CoroutineScope.launchWithBotLogger( - errorMessageBuilder: CoroutineScope.(Throwable) -> Any = { "Something web wrong" }, + errorMessageBuilder: CoroutineScope.(Throwable) -> Any = { "Something went wrong" }, context: CoroutineContext = EmptyCoroutineContext, start: CoroutineStart = CoroutineStart.DEFAULT, block: suspend CoroutineScope.() -> Unit @@ -28,7 +28,7 @@ fun CoroutineScope.launchWithBotLogger( context(bot: TelegramBot) fun Flow.subscribeWithBotLogger( scope: CoroutineScope, - errorMessageBuilder: T.(Throwable) -> Any = { "Something web wrong" }, + errorMessageBuilder: T.(Throwable) -> Any = { "Something went wrong" }, block: suspend (T) -> Unit ) = subscribeLoggingDropExceptions ( scope,