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
commit40eea04e1ec9b71c5215e9dce5a6963ea60cafaa (patch)
tree1fa3969a53138becb76a7eef7bafdafc7046c12c /Timeline/Controllers/UserAvatarController.cs
parent4ec507df6251bc1dae5204fdc6aaf14ddbb268f6 (diff)
downloadtimeline-40eea04e1ec9b71c5215e9dce5a6963ea60cafaa.tar.gz
timeline-40eea04e1ec9b71c5215e9dce5a6963ea60cafaa.tar.bz2
timeline-40eea04e1ec9b71c5215e9dce5a6963ea60cafaa.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)
{