From 6be691ab6d55ce399cf726f9752e11d5feaa993b Mon Sep 17 00:00:00 2001 From: de4dot Date: Tue, 31 Jul 2012 04:39:34 +0200 Subject: [PATCH] Increment errors if there's an exception --- de4dot.code/MethodReturnValueInliner.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/de4dot.code/MethodReturnValueInliner.cs b/de4dot.code/MethodReturnValueInliner.cs index 34bf4923..309a4827 100644 --- a/de4dot.code/MethodReturnValueInliner.cs +++ b/de4dot.code/MethodReturnValueInliner.cs @@ -205,6 +205,10 @@ namespace de4dot.code { inlineReturnValues(); return callResults.Count; } + catch { + errors++; + throw; + } finally { theMethod = null; callResults = null;