Read file content under readAction in ToFromOriginalFileMapper

Relates to #EA-212072
This commit is contained in:
Vladimir Dolzhenko
2020-04-14 17:18:28 +02:00
committed by Vladimir Dolzhenko
parent 8ea7fc1d47
commit 67fec903f6
2 changed files with 12 additions and 7 deletions
@@ -21,8 +21,8 @@ open class KotlinExceptionWithAttachments : RuntimeException, ExceptionWithAttac
override fun getAttachments(): Array<Attachment> = attachments.toTypedArray()
fun withAttachment(name: String, content: String?): KotlinExceptionWithAttachments {
attachments.add(Attachment(name, content ?: "<null>"))
fun withAttachment(name: String, content: Any?): KotlinExceptionWithAttachments {
attachments.add(Attachment(name, content?.toString() ?: "<null>"))
return this
}
}