Skip to content

Commit a396ae8

Browse files
author
Sai Asish Y
authored
Fix 'occured' -> 'occurred' typos across 7 files (#11773)
1 parent 5f01205 commit a396ae8

7 files changed

Lines changed: 7 additions & 7 deletions

File tree

src/core/public/notifications/toasts/error_toast.test.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function render(props: ErrorToastProps = {}) {
4949
<ErrorToast
5050
openModal={openModal}
5151
error={props.error || new Error('error message')}
52-
title={props.title || 'An error occured'}
52+
title={props.title || 'An error occurred'}
5353
toastMessage={props.toastMessage || 'This is the toast message'}
5454
i18nContext={() => ({ children }) => <React.Fragment>{children}</React.Fragment>}
5555
/>

src/dev/i18n/utils/utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ export function* traverseNodes(nodes) {
126126
* Forms an formatted error message for parser errors.
127127
*
128128
* This function returns a string which represents an error message and a place in the code where the error happened.
129-
* In total five lines of the code are displayed: the line where the error occured, two lines before and two lines after.
129+
* In total five lines of the code are displayed: the line where the error occurred, two lines before and two lines after.
130130
*
131131
* @param {string} content a code string where parsed error happened
132132
* @param {{ loc: { line: number, column: number }, message: string }} error an object that contains an error message and

src/dev/run_check_published_api_changes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ async function run(folder: string, { opts }: { opts: Options }): Promise<boolean
213213
log.info(`${folder} API: updated documentation ✔`);
214214
}
215215

216-
// If the api signature changed or any errors or warnings occured, exit with an error
216+
// If the api signature changed or any errors or warnings occurred, exit with an error
217217
// NOTE: Because of https://github.com/Microsoft/web-build-tools/issues/1258
218218
// api-extractor will not return `succeeded: false` when the API changes.
219219
return !apiReportChanged && succeeded;

src/plugins/agent_traces/public/components/query_panel/query_panel_widgets/save_query/save_query.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export const SaveQueryButton = () => {
117117
} catch (error) {
118118
services.notifications.toasts.addDanger(
119119
i18n.translate('agentTraces.queryPanel.saveQuery.failedToSaveQuery', {
120-
defaultMessage: 'An error occured while saving your query{errorMessage}',
120+
defaultMessage: 'An error occurred while saving your query{errorMessage}',
121121
values: { errorMessage: error.message ? `: ${error.message}` : '' },
122122
})
123123
);

src/plugins/data/public/ui/search_bar/search_bar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ class SearchBarUI extends Component<SearchBarProps, State> {
351351
this.props.intl.formatMessage(
352352
{
353353
id: 'data.search_bar.save_query.failedToSaveQuery',
354-
defaultMessage: 'An error occured while saving your query{errorMessage}',
354+
defaultMessage: 'An error occurred while saving your query{errorMessage}',
355355
},
356356
{ errorMessage: error.message ? `: ${error.message}` : '' }
357357
)

src/plugins/explore/public/components/query_panel/query_panel_widgets/save_query/save_query.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ export const SaveQueryButton = () => {
117117
} catch (error) {
118118
services.notifications.toasts.addDanger(
119119
i18n.translate('explore.editor.queryPanel.saveQuery.saveQueryFailure', {
120-
defaultMessage: 'An error occured while saving your query{errorMessage}',
120+
defaultMessage: 'An error occurred while saving your query{errorMessage}',
121121
values: { errorMessage: error.message ? `: ${error.message}` : '' },
122122
})
123123
);

src/plugins/telemetry_management_section/public/components/opt_in_example_flyout.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export class OptInExampleFlyout extends React.PureComponent<Props, State> {
141141
>
142142
<FormattedMessage
143143
id="telemetry.callout.errorLoadingClusterStatisticsDescription"
144-
defaultMessage="An unexpected error occured while attempting to fetch the cluster statistics.
144+
defaultMessage="An unexpected error occurred while attempting to fetch the cluster statistics.
145145
This can occur because OpenSearch failed, OpenSearch Dashboards failed, or there is a network error.
146146
Check OpenSearch Dashboards, then reload the page and try again."
147147
/>

0 commit comments

Comments
 (0)