Skip to content

Commit

Permalink
catch IOException instead of Throwable
Browse files Browse the repository at this point in the history
  • Loading branch information
eymar committed Oct 19, 2023
1 parent 00ed07a commit e727a1f
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ import org.jetbrains.kotlin.gradle.dsl.KotlinMultiplatformExtension
import org.jetbrains.kotlin.gradle.plugin.mpp.Framework
import org.jetbrains.kotlin.gradle.plugin.mpp.NativeBuildType
import java.io.File
import java.io.FileNotFoundException
import java.io.IOException

private val incompatiblePlugins = listOf(
"dev.icerock.mobile.multiplatform-resources",
Expand Down Expand Up @@ -138,7 +140,7 @@ internal abstract class CheckCanAccessComposeResourcesDirectory : AbstractCompos
val testFile = File(path.get().asFile, "testAccess.txt")
testFile.writeText("testAccess")
testFile.delete()
} catch (t: Throwable) {
} catch (t: IOException) {
logger.error("""
|Failed to sync compose resources!
|Please make sure ENABLE_USER_SCRIPT_SANDBOXING is set to 'NO' in 'project.pbxproj'
Expand Down

0 comments on commit e727a1f

Please sign in to comment.