mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Eel: make error more explicit
GitOrigin-RevId: 851b7d3da54482573d2999aaa4d9a54383e6a71a
This commit is contained in:
committed by
intellij-monorepo-bot
parent
80f248d842
commit
fd2ad62299
+1
-3
@@ -9,9 +9,7 @@ import com.intellij.util.containers.forEachGuaranteed
|
||||
import kotlinx.coroutines.CoroutineScope
|
||||
import kotlinx.coroutines.job
|
||||
import org.jetbrains.annotations.ApiStatus
|
||||
import org.jetbrains.annotations.TestOnly
|
||||
import org.jetbrains.annotations.VisibleForTesting
|
||||
import java.io.Closeable
|
||||
import java.nio.file.FileSystem
|
||||
import java.nio.file.FileSystems
|
||||
import java.nio.file.Path
|
||||
@@ -80,7 +78,7 @@ class EelNioBridgeServiceImpl(coroutineScope: CoroutineScope) : EelNioBridgeServ
|
||||
roots.forEachGuaranteed { localRoot ->
|
||||
fsRegistry.compute(localRoot.toString()) { _, existingFileSystem ->
|
||||
MultiRoutingFileSystemProvider.computeBackend(multiRoutingFileSystemProvider, localRoot.toString(), false, false) { underlyingProvider, actualFs ->
|
||||
require(existingFileSystem == actualFs)
|
||||
require(existingFileSystem == actualFs) { "$existingFileSystem != $actualFs" }
|
||||
try {
|
||||
existingFileSystem?.close()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user