From: peter Date: Mon, 16 Feb 2015 11:11:45 +0000 (+0100) Subject: avoid leaks from failing HgConfigTest.setUp, attempt 2 X-Git-Tag: phpstorm/140.2503~1 X-Git-Url: https://git.jetbrains.org/?p=idea%2Fcommunity.git;a=commitdiff_plain;h=36790d115cea100c96b3fded3053713899f1f91d avoid leaks from failing HgConfigTest.setUp, attempt 2 --- diff --git a/plugins/hg4idea/testSrc/hg4idea/test/config/HgConfigTest.java b/plugins/hg4idea/testSrc/hg4idea/test/config/HgConfigTest.java index d2e4f0c84e95..5e71b6ae136b 100644 --- a/plugins/hg4idea/testSrc/hg4idea/test/config/HgConfigTest.java +++ b/plugins/hg4idea/testSrc/hg4idea/test/config/HgConfigTest.java @@ -23,8 +23,13 @@ public class HgConfigTest extends HgPlatformTest { try { prepareSecondRepository(); } - catch (Throwable e) { + catch (Exception e) { tearDown(); + throw e; + } + catch (Error e) { + tearDown(); + throw e; } }