comparison src/name/blackcap/imageprep/Misc.kt @ 1:0bded24f746e

Compiles, still untested.
author David Barts <n5jrn@me.com>
date Thu, 16 Jul 2020 21:51:08 -0700
parents e0efe7848130
children 884f1415a330
comparison
equal deleted inserted replaced
0:e0efe7848130 1:0bded24f746e
232 else 232 else
233 border = BorderFactory.createCompoundBorder(b, border) 233 border = BorderFactory.createCompoundBorder(b, border)
234 } 234 }
235 235
236 fun ioExceptionDialog(parent: Component, file: File, op: String, e: IOException) { 236 fun ioExceptionDialog(parent: Component, file: File, op: String, e: IOException) {
237 val msg = e.getMessage() 237 val msg = e.message
238 val fileName = file.getName() 238 val fileName = file.getName()
239 val dmsg = if (msg.isNullOrEmpty()) { 239 val dmsg = if (msg.isNullOrEmpty()) {
240 "Unable to ${op} ${fileName}." 240 "Unable to ${op} ${fileName}."
241 } else if (fileName in msg) { 241 } else if (fileName in msg) {
242 msg 242 msg