05nelsonm / kmp-file

A very simple File API for Kotlin Multiplatform. It gets the job done.
Apache License 2.0
2 stars 0 forks source link

`wrapIOException` should use `this` instead of `cause` if not `IOException` #67

Closed 05nelsonm closed 4 months ago

05nelsonm commented 4 months ago

When utilizing the wrapIOException extension function, if the Throwable is not an IOException, the the current implementation is utilizing on that Throwable.cause instead of the Throwable itself. If there is no cause, the the exception is useless.