Skip to content

Commit f67ef1d

Browse files
committed
Use js.AggregateError
1 parent 5a9527c commit f67ef1d

File tree

2 files changed

+1
-33
lines changed

2 files changed

+1
-33
lines changed

io/js/src/main/scala/fs2/io/IOException.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
package fs2.io
2323

2424
import fs2.io.file.FileSystemException
25-
import fs2.io.internal.facade.AggregateError
2625
import fs2.io.net.SocketException
2726
import fs2.io.net.SocketTimeoutException
2827
import fs2.io.net.UnknownHostException
@@ -37,7 +36,7 @@ private class JavaScriptIOException(message: String, cause: js.JavaScriptExcepti
3736

3837
object IOException {
3938
private[io] def unapply(cause: js.JavaScriptException): Option[IOException] = cause match {
40-
case js.JavaScriptException(aggregate: AggregateError) =>
39+
case js.JavaScriptException(aggregate: js.AggregateError) =>
4140
// just use the first one. catching aggregated / CompositeFailures is impractical
4241
unapply(js.JavaScriptException(aggregate.errors(0)))
4342
case InterruptedIOException(ex) => Some(ex)

io/js/src/main/scala/fs2/io/internal/facade/AggregateError.scala

Lines changed: 0 additions & 31 deletions
This file was deleted.

0 commit comments

Comments
 (0)