Browse Source

Fixed never used warning.

af/merge-core
Dirk Lemstra 9 years ago
parent
commit
2ab4f2db6c
  1. 6
      src/ImageSharp/ImageProcessor.cs

6
src/ImageSharp/ImageProcessor.cs

@ -39,11 +39,13 @@ namespace ImageSharp.Processing
this.AfterApply(source, sourceRectangle); this.AfterApply(source, sourceRectangle);
} }
catch (Exception ex)
{
#if DEBUG #if DEBUG
catch (Exception)
{
throw; throw;
#else #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); throw new ImageProcessingException($"An error occured when processing the image using {this.GetType().Name}. See the inner exception for more detail.", ex);
#endif #endif
} }

Loading…
Cancel
Save