forked from Ivasoft/mattermost-mobile
correct spelling for log messages (#6551)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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 () => {
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user