Skip to content

Commit

Permalink
add missing failure handling to invocation
Browse files Browse the repository at this point in the history
  • Loading branch information
vendelieu committed Jan 11, 2025
1 parent 8177f0f commit 293b597
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ import eu.vendeli.tgbot.utils.error
import eu.vendeli.tgbot.utils.fqName
import eu.vendeli.tgbot.utils.getLogger
import eu.vendeli.tgbot.utils.getParameters
import eu.vendeli.tgbot.utils.handleFailure
import eu.vendeli.tgbot.utils.info
import eu.vendeli.tgbot.utils.parseCommand
import eu.vendeli.tgbot.utils.process
Expand Down Expand Up @@ -266,6 +267,7 @@ class TgUpdateHandler internal constructor(
logger.error(it) {
"Invocation error at update handling in $target with update: ${update.toJsonString()}"
}
handleFailure(update, it)
}.onSuccess {
logger.info { "Handled update#${update.updateId} to $target" }
}
Expand Down

0 comments on commit 293b597

Please sign in to comment.