From 28a52d327fac670bb13cbeb439fa999fb5205c9d Mon Sep 17 00:00:00 2001 From: Jason Frerich Date: Mon, 8 Aug 2022 03:59:36 -0500 Subject: [PATCH] correct spelling for log messages (#6551) --- app/actions/remote/session.ts | 2 +- app/actions/remote/systems.ts | 4 ++-- app/init/launch.ts | 4 ++-- app/utils/sentry.ts | 2 +- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/app/actions/remote/session.ts b/app/actions/remote/session.ts index b99af65b02..62f22326ae 100644 --- a/app/actions/remote/session.ts +++ b/app/actions/remote/session.ts @@ -173,7 +173,7 @@ export const logout = async (serverUrl: string, skipServerLogout = false, remove await client.logout(); } catch (error) { // We want to log the user even if logging out from the server failed - logWarning('An error ocurred loging out from the server', serverUrl, error); + logWarning('An error occurred logging out from the server', serverUrl, error); } } diff --git a/app/actions/remote/systems.ts b/app/actions/remote/systems.ts index d02c186b05..3fc329c7d3 100644 --- a/app/actions/remote/systems.ts +++ b/app/actions/remote/systems.ts @@ -44,7 +44,7 @@ export const fetchDataRetentionPolicy = async (serverUrl: string) => { operator.handleSystem({systems, prepareRecordsOnly: false}). catch((error) => { - logError('An error ocurred while saving data retention policies', error); + logError('An error occurred while saving data retention policies', error); }); } @@ -89,7 +89,7 @@ export const fetchConfigAndLicense = async (serverUrl: string, fetchOnly = false if (systems.length) { await operator.handleSystem({systems, prepareRecordsOnly: false}). catch((error) => { - logError('An error ocurred while saving config & license', error); + logError('An error occurred while saving config & license', error); }); } } diff --git a/app/init/launch.ts b/app/init/launch.ts index c9c38f8411..35f3c1fcca 100644 --- a/app/init/launch.ts +++ b/app/init/launch.ts @@ -1,4 +1,4 @@ -// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. +// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved. // See LICENSE.txt for license information. import Emm from '@mattermost/react-native-emm'; @@ -100,7 +100,7 @@ const launchApp = async (props: LaunchProps, resetNavigation = true) => { if (result.error) { Alert.alert( 'Error Upgrading', - `An error ocurred while upgrading the app to the new version.\n\nDetails: ${result.error}\n\nThe app will now quit.`, + `An error occurred while upgrading the app to the new version.\n\nDetails: ${result.error}\n\nThe app will now quit.`, [{ text: 'OK', onPress: async () => { diff --git a/app/utils/sentry.ts b/app/utils/sentry.ts index 9736dd3379..8a68af4b44 100644 --- a/app/utils/sentry.ts +++ b/app/utils/sentry.ts @@ -154,7 +154,7 @@ function capture(captureFunc: () => void, config?: ClientConfig) { } } catch (e) { // Don't want this to get into an infinite loop again... - logError('Exception occured while sending to Sentry'); + logError('Exception occurred while sending to Sentry'); logError(e); } }