From 1f1cd3e64aa77dcac0bc98f2ba5fcc5293e67afe Mon Sep 17 00:00:00 2001 From: Maschell Date: Sun, 7 Apr 2019 14:54:02 +0200 Subject: [PATCH] Return a IOException when parsing a WUD fails --- .../mas/wiiu/jnus/implementations/wud/parser/WUDInfoParser.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/de/mas/wiiu/jnus/implementations/wud/parser/WUDInfoParser.java b/src/de/mas/wiiu/jnus/implementations/wud/parser/WUDInfoParser.java index 7d414c7..4509dfc 100644 --- a/src/de/mas/wiiu/jnus/implementations/wud/parser/WUDInfoParser.java +++ b/src/de/mas/wiiu/jnus/implementations/wud/parser/WUDInfoParser.java @@ -66,7 +66,7 @@ public final class WUDInfoParser { // verify DiscKey before proceeding if (!Arrays.equals(Arrays.copyOfRange(PartitionTocBlock, 0, 4), DECRYPTED_AREA_SIGNATURE)) { // log.info("Decryption of PartitionTocBlock failed"); - throw new RuntimeException("Decryption of PartitionTocBlock failed"); + throw new IOException("Decryption of PartitionTocBlock failed"); } result.getPartitions().clear();