diff options
author | 杨宇千 <crupest@outlook.com> | 2019-10-25 18:36:02 +0800 |
---|---|---|
committer | 杨宇千 <crupest@outlook.com> | 2019-10-25 18:36:02 +0800 |
commit | 5790142f81f2a94ad073834b1534acbf9b02ea3c (patch) | |
tree | c6ec0a916c78a02b36113fb62f0e919019df6cfc /Timeline/Services/UserAvatarService.cs | |
parent | 681e2cc9ecaeefd883a7c6645374926c184fba5d (diff) | |
download | timeline-5790142f81f2a94ad073834b1534acbf9b02ea3c.tar.gz timeline-5790142f81f2a94ad073834b1534acbf9b02ea3c.tar.bz2 timeline-5790142f81f2a94ad073834b1534acbf9b02ea3c.zip |
Add NeutralResourcesLanguage. Conform to best practices.
Diffstat (limited to 'Timeline/Services/UserAvatarService.cs')
-rw-r--r-- | Timeline/Services/UserAvatarService.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Timeline/Services/UserAvatarService.cs b/Timeline/Services/UserAvatarService.cs index ff80003c..2afe9093 100644 --- a/Timeline/Services/UserAvatarService.cs +++ b/Timeline/Services/UserAvatarService.cs @@ -219,7 +219,7 @@ namespace Timeline.Services {
if (!LanguageHelper.AreSame(avatarEntity.Data == null, avatarEntity.Type == null))
{
- var message = Resources.Services.UserAvatarService.DatabaseCorruptedDataAndTypeNotSame;
+ var message = Resources.Services.UserAvatarService.ExceptionDatabaseCorruptedDataAndTypeNotSame;
_logger.LogCritical(message);
throw new DatabaseCorruptedException(message);
}
@@ -248,9 +248,9 @@ namespace Timeline.Services if (avatar != null)
{
if (avatar.Data == null)
- throw new ArgumentException(Resources.Services.UserAvatarService.ArgumentAvatarDataNull, nameof(avatar));
+ throw new ArgumentException(Resources.Services.UserAvatarService.ExceptionAvatarDataNull, nameof(avatar));
if (string.IsNullOrEmpty(avatar.Type))
- throw new ArgumentException(Resources.Services.UserAvatarService.ArgumentAvatarTypeNullOrEmpty, nameof(avatar));
+ throw new ArgumentException(Resources.Services.UserAvatarService.ExceptionAvatarTypeNullOrEmpty, nameof(avatar));
}
var userId = await DatabaseExtensions.CheckAndGetUser(_database.Users, _usernameValidator, username);
|