mirror of
https://github.com/Maschell/JNUSLib.git
synced 2024-11-26 09:54:18 +01:00
Return a IOException when parsing a WUD fails
This commit is contained in:
parent
7bd424ec42
commit
1f1cd3e64a
@ -66,7 +66,7 @@ public final class WUDInfoParser {
|
|||||||
// verify DiscKey before proceeding
|
// verify DiscKey before proceeding
|
||||||
if (!Arrays.equals(Arrays.copyOfRange(PartitionTocBlock, 0, 4), DECRYPTED_AREA_SIGNATURE)) {
|
if (!Arrays.equals(Arrays.copyOfRange(PartitionTocBlock, 0, 4), DECRYPTED_AREA_SIGNATURE)) {
|
||||||
// log.info("Decryption of PartitionTocBlock failed");
|
// log.info("Decryption of PartitionTocBlock failed");
|
||||||
throw new RuntimeException("Decryption of PartitionTocBlock failed");
|
throw new IOException("Decryption of PartitionTocBlock failed");
|
||||||
}
|
}
|
||||||
|
|
||||||
result.getPartitions().clear();
|
result.getPartitions().clear();
|
||||||
|
Loading…
Reference in New Issue
Block a user