[util] SmartPrinter: override toString to print content instead of identity hash

Otherwise, all current exceptions contain only something like SmartPrinter@1234
This commit is contained in:
Dmitrii Gridin
2023-07-20 21:04:37 +02:00
committed by Space Team
parent bcc4a891be
commit 82061a73eb
@@ -42,6 +42,8 @@ class SmartPrinter(appendable: Appendable, indent: String = DEFAULT_INDENT) {
fun getCurrentIndentInUnits() = printer.currentIndentLengthInUnits
fun getIndentUnit() = printer.indentUnitLength
override fun toString(): String = printer.toString()
}
inline fun SmartPrinter.withIndent(block: () -> Unit) {