Rename Error to align it with MS ILogger
This commit is contained in:
@@ -226,7 +226,7 @@ namespace Umbraco.Core.Persistence.Repositories.Implement
|
||||
if (string.IsNullOrWhiteSpace(entity.Alias))
|
||||
{
|
||||
var ex = new Exception($"ContentType '{entity.Name}' cannot have an empty Alias. This is most likely due to invalid characters stripped from the Alias.");
|
||||
Logger.Error<ContentTypeRepository>("ContentType '{EntityName}' cannot have an empty Alias. This is most likely due to invalid characters stripped from the Alias.", entity.Name);
|
||||
Logger.LogError<ContentTypeRepository>("ContentType '{EntityName}' cannot have an empty Alias. This is most likely due to invalid characters stripped from the Alias.", entity.Name);
|
||||
throw ex;
|
||||
}
|
||||
|
||||
|
||||
@@ -1216,7 +1216,7 @@ AND umbracoNode.id <> @id",
|
||||
{
|
||||
var ex = new InvalidOperationException($"Property Type '{pt.Name}' cannot have an empty Alias. This is most likely due to invalid characters stripped from the Alias.");
|
||||
|
||||
Logger.Error<ContentTypeRepositoryBase<TEntity>>("Property Type '{PropertyTypeName}' cannot have an empty Alias. This is most likely due to invalid characters stripped from the Alias.",
|
||||
Logger.LogError<ContentTypeRepositoryBase<TEntity>>("Property Type '{PropertyTypeName}' cannot have an empty Alias. This is most likely due to invalid characters stripped from the Alias.",
|
||||
pt.Name);
|
||||
|
||||
throw ex;
|
||||
@@ -1229,7 +1229,7 @@ AND umbracoNode.id <> @id",
|
||||
{
|
||||
var ex = new InvalidOperationException($"{typeof(TEntity).Name} '{entity.Name}' cannot have an empty Alias. This is most likely due to invalid characters stripped from the Alias.");
|
||||
|
||||
Logger.Error<ContentTypeRepositoryBase<TEntity>>("{EntityTypeName} '{EntityName}' cannot have an empty Alias. This is most likely due to invalid characters stripped from the Alias.",
|
||||
Logger.LogError<ContentTypeRepositoryBase<TEntity>>("{EntityTypeName} '{EntityName}' cannot have an empty Alias. This is most likely due to invalid characters stripped from the Alias.",
|
||||
typeof(TEntity).Name,
|
||||
entity.Name);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user