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
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 {