Skip to content

Commit 0a0b857

Browse files
authored
Merge pull request #430 from wordpress-mobile/feature/crash-log
Make the exception log actually useful
2 parents d260add + 9c6035d commit 0a0b857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ class AztecText : AppCompatAutoCompleteTextView, TextWatcher, UnknownHtmlSpan.On
976976
editable.replace(min, max, builder)
977977
} catch (e: RuntimeException) {
978978
// try to get more context for this crash: https://github.com/wordpress-mobile/AztecEditor-Android/issues/424
979-
throw RuntimeException("min: $min; max: $max; text: ${editable.toString()}; pasted: ${builder.toString()}", e)
979+
throw RuntimeException("### MIN: $min, MAX: $max\n---\n### TEXT:${toHtml()}\n---\n### PASTED:${parser.toHtml(builder)}", e)
980980
}
981981
enableTextChangedListener()
982982

0 commit comments

Comments
 (0)