diff options
author | crupest <crupest@outlook.com> | 2021-04-27 18:52:57 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-04-27 18:52:57 +0800 |
commit | 1b751781f0681a047f3d3d6097009478886ee2f5 (patch) | |
tree | 4710ab0c761a264f090f9aa74a45e62fd39450f8 /BackEnd/Timeline/Controllers | |
parent | 6c9778b55dd8367d38280c66e0f308c5332029ed (diff) | |
download | timeline-1b751781f0681a047f3d3d6097009478886ee2f5.tar.gz timeline-1b751781f0681a047f3d3d6097009478886ee2f5.tar.bz2 timeline-1b751781f0681a047f3d3d6097009478886ee2f5.zip |
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Controllers')
-rw-r--r-- | BackEnd/Timeline/Controllers/UserAvatarController.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/BackEnd/Timeline/Controllers/UserAvatarController.cs b/BackEnd/Timeline/Controllers/UserAvatarController.cs index 158c342e..d0998fa7 100644 --- a/BackEnd/Timeline/Controllers/UserAvatarController.cs +++ b/BackEnd/Timeline/Controllers/UserAvatarController.cs @@ -117,7 +117,7 @@ namespace Timeline.Controllers {
ImageException.ErrorReason.CantDecode => ErrorResponse.UserAvatar.BadFormat_CantDecode(),
ImageException.ErrorReason.UnmatchedFormat => ErrorResponse.UserAvatar.BadFormat_UnmatchedFormat(),
- ImageException.ErrorReason.NotSquare => ErrorResponse.UserAvatar.BadFormat_BadSize(),
+ ImageException.ErrorReason.BadSize => ErrorResponse.UserAvatar.BadFormat_BadSize(),
_ =>
throw new Exception(ExceptionUnknownAvatarFormatError)
});
|