[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:
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) {
|
||||
|
||||
Reference in New Issue
Block a user