Small tweaks to error and toast messages (#2142)

Removed instances of "got" - aimed to make very small changes that arn't very stylistic/ opinionated just basic native english tweaks
This commit is contained in:
maxtkacz 2021-08-27 17:25:54 +02:00 committed by GitHub
parent 69745c93d8
commit fb71324a53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 10 deletions

View file

@ -68,7 +68,7 @@ export class Credentials extends ICredentials {
try {
return JSON.parse(decryptedData.toString(enc.Utf8));
} catch (e) {
throw new Error('Credentials could not be decrypted. The reason is that probably a different "encryptionKey" got used to encrypt the data than now to decrypt it.');
throw new Error('Credentials could not be decrypted. The likely reason is that a different "encryptionKey" was used to encrypt the data.');
}
}
@ -80,7 +80,7 @@ export class Credentials extends ICredentials {
const fullData = this.getData(encryptionKey, nodeType);
if (fullData === null) {
throw new Error(`No data got set.`);
throw new Error(`No data was set.`);
}
if (!fullData.hasOwnProperty(key)) {
@ -96,7 +96,7 @@ export class Credentials extends ICredentials {
*/
getDataToSave(): ICredentialsEncrypted {
if (this.data === undefined) {
throw new Error(`No credentials got set to save.`);
throw new Error(`No credentials were set to save.`);
}
return {

View file

@ -161,7 +161,7 @@ export async function requestOAuth2(this: IAllExecuteFunctions, credentialsType:
const credentials = await this.getCredentials(credentialsType) as ICredentialDataDecryptedObject;
if (credentials === undefined) {
throw new Error('No credentials got returned!');
throw new Error('No credentials were returned!');
}
if (credentials.oauthTokenData === undefined) {
@ -250,7 +250,7 @@ export async function requestOAuth1(this: IAllExecuteFunctions, credentialsType:
const credentials = await this.getCredentials(credentialsType) as ICredentialDataDecryptedObject;
if (credentials === undefined) {
throw new Error('No credentials got returned!');
throw new Error('No credentials were returned!');
}
if (credentials.oauthTokenData === undefined) {

View file

@ -49,7 +49,7 @@ export async function prepareUserSettings(): Promise<IUserSettings> {
userSettings.encryptionKey = randomBytes(24).toString('base64');
}
console.log(`UserSettings got generated and saved to: ${settingsPath}`);
console.log(`UserSettings were generated and saved to: ${settingsPath}`);
return writeUserSettings(userSettings, settingsPath);
}

View file

@ -632,7 +632,7 @@ export default mixins(
this.$showMessage({
title: 'Workflow created',
message: 'A new workflow got created!',
message: 'A new workflow was successfully created!',
type: 'success',
});
} else if ((e.key === 's') && (this.isCtrlKeyPressed(e) === true)) {
@ -912,7 +912,7 @@ export default mixins(
await this.restApi().stopCurrentExecution(executionId);
this.$showMessage({
title: 'Execution stopped',
message: `The execution with the id "${executionId}" got stopped!`,
message: `The execution with the id "${executionId}" was stopped!`,
type: 'success',
});
} catch (error) {
@ -957,8 +957,8 @@ export default mixins(
}
this.$showMessage({
title: 'Webhook got deleted',
message: `The webhook got deleted!`,
title: 'Webhook deleted',
message: `The webhook was deleted successfully`,
type: 'success',
});
},