aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Controllers/UserAvatarController.cs
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-01-19 22:45:43 +0800
committercrupest <crupest@outlook.com>2020-01-19 22:45:43 +0800
commite6069a6980ec6d2505e19026d4c84a9588f153dc (patch)
tree1fa3969a53138becb76a7eef7bafdafc7046c12c /Timeline/Controllers/UserAvatarController.cs
parentc5f3c69b3a008ab87542e523e2a59f37801bd65a (diff)
downloadtimeline-e6069a6980ec6d2505e19026d4c84a9588f153dc.tar.gz
timeline-e6069a6980ec6d2505e19026d4c84a9588f153dc.tar.bz2
timeline-e6069a6980ec6d2505e19026d4c84a9588f153dc.zip
Basically finish refactor of error codes.
Diffstat (limited to 'Timeline/Controllers/UserAvatarController.cs')
-rw-r--r--Timeline/Controllers/UserAvatarController.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline/Controllers/UserAvatarController.cs b/Timeline/Controllers/UserAvatarController.cs
index b4a6d8fd..62f1d78c 100644
--- a/Timeline/Controllers/UserAvatarController.cs
+++ b/Timeline/Controllers/UserAvatarController.cs
@@ -66,7 +66,7 @@ namespace Timeline.Controllers
catch (UserNotExistException e)
{
_logger.LogInformation(e, Log.Format(LogGetUserNotExist, ("Username", username)));
- return NotFound(ErrorResponse.UserController.ChangePassword_BadOldPassword());
+ return NotFound(ErrorResponse.UserCommon.NotExist());
}
}
@@ -112,7 +112,7 @@ namespace Timeline.Controllers
catch (UserNotExistException e)
{
_logger.LogInformation(e, Log.Format(LogPutUserNotExist, ("Username", username)));
- return BadRequest(ErrorResponse.UserController.ChangePassword_BadOldPassword());
+ return BadRequest(ErrorResponse.UserCommon.NotExist());
}
catch (AvatarFormatException e)
{