Rename Error to align it with MS ILogger
This commit is contained in:
@@ -102,7 +102,7 @@ namespace Umbraco.Web.BackOffice.Controllers
|
||||
catch (Exception exception)
|
||||
{
|
||||
const string errorMessage = "Error creating macro";
|
||||
_logger.Error<MacrosController>(exception, errorMessage);
|
||||
_logger.LogError<MacrosController>(exception, errorMessage);
|
||||
throw HttpResponseException.CreateNotificationValidationErrorResponse(errorMessage);
|
||||
}
|
||||
}
|
||||
@@ -226,7 +226,7 @@ namespace Umbraco.Web.BackOffice.Controllers
|
||||
catch (Exception exception)
|
||||
{
|
||||
const string errorMessage = "Error creating macro";
|
||||
_logger.Error<MacrosController>(exception, errorMessage);
|
||||
_logger.LogError<MacrosController>(exception, errorMessage);
|
||||
throw HttpResponseException.CreateNotificationValidationErrorResponse(errorMessage);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user