Browse Source

Fixed never used warning.

pull/210/head
Dirk Lemstra 9 years ago
parent
commit
360ad5f8aa
  1. 6
      src/ImageSharp/ImageProcessor.cs

6
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
}

Loading…
Cancel
Save