aboutsummaryrefslogtreecommitdiff
path: root/app/src/main/java
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2022-11-27 13:02:04 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2022-11-27 13:28:45 +0530
commit014c7a62c047e0686b5f3c55ee6f916a48463877 (patch)
treeab5cd4946f388a33caa5b080c6eb3b854621743f /app/src/main/java
parent8bb61eca2dca583d8fc032cfc085bc899d3fa929 (diff)
chore: use `asLog` extension instead of duplicating
Diffstat (limited to 'app/src/main/java')
-rw-r--r--app/src/main/java/app/passwordstore/ui/git/config/GitConfigActivity.kt3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/src/main/java/app/passwordstore/ui/git/config/GitConfigActivity.kt b/app/src/main/java/app/passwordstore/ui/git/config/GitConfigActivity.kt
index 2603dfdf..68684582 100644
--- a/app/src/main/java/app/passwordstore/ui/git/config/GitConfigActivity.kt
+++ b/app/src/main/java/app/passwordstore/ui/git/config/GitConfigActivity.kt
@@ -19,6 +19,7 @@ import app.passwordstore.databinding.ActivityGitConfigBinding
import app.passwordstore.ui.dialogs.TextInputDialog
import app.passwordstore.ui.git.base.BaseGitActivity
import app.passwordstore.ui.git.log.GitLogActivity
+import app.passwordstore.util.extensions.asLog
import app.passwordstore.util.extensions.viewBinding
import com.github.michaelbull.result.fold
import com.github.michaelbull.result.getOrElse
@@ -91,7 +92,7 @@ class GitConfigActivity : BaseGitActivity() {
}
binding.gitLog.setOnClickListener {
runCatching { startActivity(Intent(this, GitLogActivity::class.java)) }
- .onFailure { ex -> logcat(ERROR) { "Failed to start GitLogActivity\n${ex}" } }
+ .onFailure { ex -> logcat(ERROR) { ex.asLog("Failed to start GitLogActivity") } }
}
binding.gitAbortRebase.setOnClickListener {
lifecycleScope.launch {