correct spelling for log messages (#6551)

This commit is contained in:
Jason Frerich
2022-08-08 03:59:36 -05:00
committed by GitHub
parent 6d43406e3a
commit 28a52d327f
4 changed files with 6 additions and 6 deletions

View File

@@ -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);
}
}

View File

@@ -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);
});
}
}

View File

@@ -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 () => {

View File

@@ -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);
}
}