Skip to content

Commit

Permalink
fix: broken deprecation message
Browse files Browse the repository at this point in the history
  • Loading branch information
Sculas committed Sep 8, 2022
1 parent 596ede1 commit 62aa295
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/kotlin/app/revanced/patcher/Patcher.kt
Expand Up @@ -291,7 +291,8 @@ class Patcher(private val options: PatcherOptions) {
}

patch.deprecated?.let { (reason, replacement) ->
logger.warn("'$patchName' is deprecated: '$reason'" + if (replacement != null) ". Use '$replacement' instead." else "")
logger.warn("'$patchName' is deprecated: $reason")
if (replacement != null) logger.warn("Use '${replacement.java.patchName}' instead")
}

// TODO: find a solution for this
Expand Down

0 comments on commit 62aa295

Please sign in to comment.