Skip to content

Commit 2392943

Browse files
committed
Fix typo, and report to log errors dumping the HTML
1 parent 229dfb3 commit 2392943

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,14 +30,15 @@ class AztecExceptionHandler(private val logHelper: ExceptionHandlerHelper?, priv
3030
if (shouldLog) {
3131
// Try to report the HTML code of the content, the spans details, but do not report exceptions that can occur logging the content
3232
try {
33-
AppLog.e(AppLog.T.EDITOR, "HTML Content of Aztec Editor before the crash " + visualEditor.toPlainHtml(false))
33+
AppLog.e(AppLog.T.EDITOR, "HTML content of Aztec Editor before the crash:")
34+
AppLog.e(AppLog.T.EDITOR, visualEditor.toPlainHtml(false))
3435
} catch (e: Throwable) {
35-
// nope
36+
AppLog.e(AppLog.T.EDITOR, "Oops! There was an error logging the HTML code.")
3637
}
3738
try {
3839
AztecLog.logContentDetails(visualEditor)
3940
} catch (e: Throwable) {
40-
// nope
41+
// nop
4142
}
4243
}
4344

0 commit comments

Comments
 (0)