Fix mis-spelt "occurred"

This commit is contained in:
Laura Weatherhead
2020-10-17 18:25:05 +01:00
committed by Nathan Woulfe
parent e783af3d19
commit cc74be5a27
2 changed files with 4 additions and 4 deletions

View File

@@ -179,7 +179,7 @@ function umbRequestHelper($http, $q, notificationsService, eventsService, formHe
//show a ysod dialog
if (Umbraco.Sys.ServerVariables["isDebuggingEnabled"] === true) {
const error = { errorMsg: 'An error occured', data: response.data };
const error = { errorMsg: 'An error occurred', data: response.data };
// TODO: All YSOD handling should be done with an interceptor
overlayService.ysod(error);
}
@@ -294,7 +294,7 @@ function umbRequestHelper($http, $q, notificationsService, eventsService, formHe
}
else if (Umbraco.Sys.ServerVariables["isDebuggingEnabled"] === true) {
//show a ysod dialog
const error = { errorMsg: 'An error occured', data: response.data };
const error = { errorMsg: 'An error occurred', data: response.data };
// TODO: All YSOD handling should be done with an interceptor
overlayService.ysod(error);
}

View File

@@ -443,9 +443,9 @@ namespace Umbraco.Web.Editors
}
catch (Exception ex)
{
Logger.Error<UsersController>(ex, "An error occured in a custom event handler while inviting the user");
Logger.Error<UsersController>(ex, "An error occurred in a custom event handler while inviting the user");
throw new HttpResponseException(
Request.CreateNotificationValidationErrorResponse($"An error occured inviting the user (check logs for more info): {ex.Message}"));
Request.CreateNotificationValidationErrorResponse($"An error occurred inviting the user (check logs for more info): {ex.Message}"));
}
// If the event is handled then no need to send the email