aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Controllers/UserAvatarController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2021-04-27 18:52:57 +0800
committercrupest <crupest@outlook.com>2021-04-27 18:52:57 +0800
commit1b751781f0681a047f3d3d6097009478886ee2f5 (patch)
tree4710ab0c761a264f090f9aa74a45e62fd39450f8 /BackEnd/Timeline/Controllers/UserAvatarController.cs
parent6c9778b55dd8367d38280c66e0f308c5332029ed (diff)
downloadtimeline-1b751781f0681a047f3d3d6097009478886ee2f5.tar.gz
timeline-1b751781f0681a047f3d3d6097009478886ee2f5.tar.bz2
timeline-1b751781f0681a047f3d3d6097009478886ee2f5.zip
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Controllers/UserAvatarController.cs')
-rw-r--r--BackEnd/Timeline/Controllers/UserAvatarController.cs2
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)
});