Skip to content

Commit

Permalink
Keep the original IOException handling in ShadowCopyAction.execute (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler authored Jan 11, 2025
1 parent fb0d7a2 commit 770109a
Showing 1 changed file with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,12 @@ public open class ShadowCopyAction internal constructor(
processTransformers(outputStream)
}
} catch (e: IOException) {
throw Zip64RequiredException(
"${e.cause?.message}\n\nTo build this archive, please enable the zip64 extension.\n" +
"See: ${documentationRegistry.getDslRefForProperty(Zip::class.java, "zip64")}",
)
if (e.cause is Zip64RequiredException) {
throw Zip64RequiredException(
"${e.cause?.message}\n\nTo build this archive, please enable the zip64 extension.\n" +
"See: ${documentationRegistry.getDslRefForProperty(Zip::class.java, "zip64")}",
)
}
}
return WorkResults.didWork(true)
}
Expand Down

0 comments on commit 770109a

Please sign in to comment.