mirror of
https://github.com/msfjarvis/compose-lobsters
synced 2025-08-14 19:57:04 +05:30
refactor(common): ensure exceptions in UrlLauncher
are logged
This commit is contained in:
parent
38f1fdb6a3
commit
d178bebebd
2 changed files with 1 additions and 2 deletions
|
@ -20,7 +20,7 @@ class UrlLauncher(private val context: Context) : UriHandler {
|
|||
customTabsIntent.launchUrl(context, Uri.parse(uri))
|
||||
} catch (e: ActivityNotFoundException) {
|
||||
val error = "Failed to open URL: $uri"
|
||||
Napier.d(tag = "UrlLauncher") { error }
|
||||
Napier.d(throwable = e, tag = "UrlLauncher") { error }
|
||||
Toast.makeText(context, error, Toast.LENGTH_SHORT).show()
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue