From 2ab4f2db6c2f801ca118fe65170a1a68f74ac500 Mon Sep 17 00:00:00 2001 From: Dirk Lemstra Date: Fri, 5 May 2017 15:00:21 +0200 Subject: [PATCH] Fixed never used warning. --- src/ImageSharp/ImageProcessor.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/ImageSharp/ImageProcessor.cs b/src/ImageSharp/ImageProcessor.cs index 745b25fb6..d42650e56 100644 --- a/src/ImageSharp/ImageProcessor.cs +++ b/src/ImageSharp/ImageProcessor.cs @@ -39,11 +39,13 @@ namespace ImageSharp.Processing this.AfterApply(source, sourceRectangle); } - catch (Exception ex) - { #if DEBUG + catch (Exception) + { throw; #else + catch (Exception ex) + { throw new ImageProcessingException($"An error occured when processing the image using {this.GetType().Name}. See the inner exception for more detail.", ex); #endif }