mirror of
https://github.com/KokaKiwi/BarInsta
synced 2024-11-14 18:57:30 +00:00
Make top part of report content readable in email app
This commit is contained in:
parent
863de885ea
commit
ac98420516
@ -36,9 +36,9 @@ object CrashReporterHelper {
|
|||||||
fun getReportContent(exception: Throwable): String {
|
fun getReportContent(exception: Throwable): String {
|
||||||
var reportContent =
|
var reportContent =
|
||||||
"""
|
"""
|
||||||
IMPORTANT: If sending by email, your email address and the entire content will be made public at
|
IMPORTANT: If sending by email, your email address and the entire content will be made public at https://github.com/austinhuang0131/barinsta/issues.
|
||||||
IMPORTANT: https://github.com/austinhuang0131/barinsta/issues
|
|
||||||
IMPORTANT: When possible, please describe the steps leading to this crash. Thank you for your cooperation.
|
When possible, please describe the steps leading to this crash. Thank you for your cooperation.
|
||||||
|
|
||||||
Error report collected on: ${LocalDateTime.now()}
|
Error report collected on: ${LocalDateTime.now()}
|
||||||
|
|
||||||
@ -71,7 +71,7 @@ object CrashReporterHelper {
|
|||||||
exception.printStackTrace(it)
|
exception.printStackTrace(it)
|
||||||
reportBuilder.append(writer.toString())
|
reportBuilder.append(writer.toString())
|
||||||
var cause = exception.cause
|
var cause = exception.cause
|
||||||
if (cause != null) reportBuilder.append("\nCause:\n$shortBorder")
|
if (cause != null) reportBuilder.append("\nCause:\n$shortBorder\n")
|
||||||
while (cause != null) {
|
while (cause != null) {
|
||||||
cause.printStackTrace(it)
|
cause.printStackTrace(it)
|
||||||
reportBuilder.append(writer.toString())
|
reportBuilder.append(writer.toString())
|
||||||
|
Loading…
Reference in New Issue
Block a user