diff options
author | crupest <crupest@outlook.com> | 2020-06-17 17:10:40 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-06-17 17:10:40 +0800 |
commit | 4a46206ea5f004ecb595de4bfd573b6263ac462b (patch) | |
tree | b4532afa1b9026d7245b7c172116a8cc99d33daf /Timeline/Services/ImageValidator.cs | |
parent | c360ec8414a563338839b239c0f8062bfdcdc4e9 (diff) | |
download | timeline-4a46206ea5f004ecb595de4bfd573b6263ac462b.tar.gz timeline-4a46206ea5f004ecb595de4bfd573b6263ac462b.tar.bz2 timeline-4a46206ea5f004ecb595de4bfd573b6263ac462b.zip |
refactor(back): Refactor timeline service.
Diffstat (limited to 'Timeline/Services/ImageValidator.cs')
-rw-r--r-- | Timeline/Services/ImageValidator.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Timeline/Services/ImageValidator.cs b/Timeline/Services/ImageValidator.cs index c331d912..59424a7c 100644 --- a/Timeline/Services/ImageValidator.cs +++ b/Timeline/Services/ImageValidator.cs @@ -3,6 +3,7 @@ using SixLabors.ImageSharp.Formats; using System;
using System.Linq;
using System.Threading.Tasks;
+using Timeline.Services.Exceptions;
namespace Timeline.Services
{
@@ -44,7 +45,7 @@ namespace Timeline.Services }
catch (UnknownImageFormatException e)
{
- throw new ImageException(e, ImageException.ErrorReason.CantDecode, data, requestType, null);
+ throw new ImageException(ImageException.ErrorReason.CantDecode, data, requestType, null, null, e);
}
});
return format;
|