Read file content under readAction in ToFromOriginalFileMapper
Relates to #EA-212072
This commit is contained in:
committed by
Vladimir Dolzhenko
parent
8ea7fc1d47
commit
67fec903f6
@@ -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
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user