diff options
| author | 2015-09-09 17:39:57 -0400 | |
|---|---|---|
| committer | 2015-09-09 17:39:57 -0400 | |
| commit | 2bee2c1a55464688409a8321a2ecad5d0c578dae (patch) | |
| tree | 19d77bb5561ebe3b703a7ca981f352ac0c935304 /src/cuchaz | |
| parent | fix assembling nested inner class names (diff) | |
| download | enigma-fork-2bee2c1a55464688409a8321a2ecad5d0c578dae.tar.gz enigma-fork-2bee2c1a55464688409a8321a2ecad5d0c578dae.tar.xz enigma-fork-2bee2c1a55464688409a8321a2ecad5d0c578dae.zip | |
log exceptions to stderr instead of just crashing when procyon chokes on decompiling something weird
Diffstat (limited to 'src/cuchaz')
| -rw-r--r-- | src/cuchaz/enigma/Deobfuscator.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cuchaz/enigma/Deobfuscator.java b/src/cuchaz/enigma/Deobfuscator.java index 08a974a..82d1611 100644 --- a/src/cuchaz/enigma/Deobfuscator.java +++ b/src/cuchaz/enigma/Deobfuscator.java | |||
| @@ -312,7 +312,10 @@ public class Deobfuscator { | |||
| 312 | out.write(source); | 312 | out.write(source); |
| 313 | } | 313 | } |
| 314 | } catch (Throwable t) { | 314 | } catch (Throwable t) { |
| 315 | throw new Error("Unable to deobfuscate class " + deobfClassEntry.toString() + " (" + obfClassEntry.toString() + ")", t); | 315 | // don't crash the whole world here, just log the error and keep going |
| 316 | // TODO: set up logback via log4j | ||
| 317 | System.err.println("Unable to deobfuscate class " + deobfClassEntry.toString() + " (" + obfClassEntry.toString() + ")"); | ||
| 318 | t.printStackTrace(System.err); | ||
| 316 | } | 319 | } |
| 317 | } | 320 | } |
| 318 | if (progress != null) { | 321 | if (progress != null) { |