aboutsummaryrefslogtreecommitdiff
path: root/BackEnd/Timeline/Controllers
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
commit7a54c3fea708f25303c27630ae2bc8101b9390c3 (patch)
tree8a9f0cb6d6b6bd33d5ce4f3e987e339e433f396a /BackEnd/Timeline/Controllers
parent2cbcd8b63bcd7e3d45cd92baa5bacd828527aea8 (diff)
downloadtimeline-7a54c3fea708f25303c27630ae2bc8101b9390c3.tar.gz
timeline-7a54c3fea708f25303c27630ae2bc8101b9390c3.tar.bz2
timeline-7a54c3fea708f25303c27630ae2bc8101b9390c3.zip
refactor: ...
Diffstat (limited to 'BackEnd/Timeline/Controllers')
-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)
});