From ee9df21ae53cb4c4787f6605ba981bdff909f9f3 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sun, 10 Jan 2021 16:07:37 +0100 Subject: [PATCH] Fixed some typos in errors ref #76 --- src/errors/AddressErrors.ts | 4 ++-- src/errors/AuthError.ts | 2 +- src/errors/GroupContactErrors.ts | 2 +- src/errors/PrincipalErrors.ts | 4 ++-- src/errors/RunnerCardErrors.ts | 4 ++-- src/errors/RunnerErrors.ts | 2 +- src/errors/RunnerOrganisationErrors.ts | 2 +- src/errors/ScanStationErrors.ts | 2 +- src/errors/StatsClientErrors.ts | 2 +- src/errors/UserGroupErrors.ts | 10 +++++----- 10 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/errors/AddressErrors.ts b/src/errors/AddressErrors.ts index 18cf624..27f2e5f 100644 --- a/src/errors/AddressErrors.ts +++ b/src/errors/AddressErrors.ts @@ -9,11 +9,11 @@ export class AddressWrongTypeError extends NotAcceptableError { name = "AddressWrongTypeError" @IsString() - message = "The address must be an existing adress's id. \n You provided a object of another type." + message = "The address must be an existing address's id. \n You provided a object of another type." } /** - * Error to throw, when a non-existant address get's loaded. + * Error to throw, when a non-existent address get's loaded. */ export class AddressNotFoundError extends NotFoundError { @IsString() diff --git a/src/errors/AuthError.ts b/src/errors/AuthError.ts index 848ce78..6e3cd9d 100644 --- a/src/errors/AuthError.ts +++ b/src/errors/AuthError.ts @@ -118,7 +118,7 @@ export class RefreshTokenCountInvalidError extends NotAcceptableError { } /** - * Error to throw when someone tryes to reset a user's password more than once in 15 minutes. + * Error to throw when someone tries to reset a user's password more than once in 15 minutes. */ export class ResetAlreadyRequestedError extends NotAcceptableError { @IsString() diff --git a/src/errors/GroupContactErrors.ts b/src/errors/GroupContactErrors.ts index 7dc19e8..92fd4a2 100644 --- a/src/errors/GroupContactErrors.ts +++ b/src/errors/GroupContactErrors.ts @@ -13,7 +13,7 @@ export class GroupContactWrongTypeError extends NotAcceptableError { } /** - * Error to throw, when a non-existant groupContact get's loaded. + * Error to throw, when a non-existent groupContact get's loaded. */ export class GroupContactNotFoundError extends NotFoundError { @IsString() diff --git a/src/errors/PrincipalErrors.ts b/src/errors/PrincipalErrors.ts index d519dc7..bd7677c 100644 --- a/src/errors/PrincipalErrors.ts +++ b/src/errors/PrincipalErrors.ts @@ -13,12 +13,12 @@ export class PrincipalNotFoundError extends NotFoundError { } /** - * Error to throw, when a provided runnerOrganisation doesn't belong to the accepted types. + * Error to throw, when a provided runner organization doesn't belong to the accepted types. */ export class PrincipalWrongTypeError extends NotAcceptableError { @IsString() name = "PrincipalWrongTypeError" @IsString() - message = "The princial must have an existing principal's id. \n You provided a object of another type." + message = "The principal must have an existing principal's id. \n You provided a object of another type." } diff --git a/src/errors/RunnerCardErrors.ts b/src/errors/RunnerCardErrors.ts index 63c3485..7976dc9 100644 --- a/src/errors/RunnerCardErrors.ts +++ b/src/errors/RunnerCardErrors.ts @@ -32,12 +32,12 @@ export class RunnerCardHasScansError extends NotAcceptableError { name = "RunnerCardHasScansError" @IsString() - message = "This card still has scans associated with it. \n If you want to delete this card with all it's scans add `?force` to your query. \n Otherwise please consider just diableing it." + message = "This card still has scans associated with it. \n If you want to delete this card with all it's scans add `?force` to your query. \n Otherwise please consider just disabling it." } /** * Error to throw when a card's id is too big to generate a ean-13 barcode for it. - * This error should never reach a enduser. + * This error should never reach a end user. */ export class RunnerCardIdOutOfRangeError extends Error { @IsString() diff --git a/src/errors/RunnerErrors.ts b/src/errors/RunnerErrors.ts index 6ef12c5..b60a70d 100644 --- a/src/errors/RunnerErrors.ts +++ b/src/errors/RunnerErrors.ts @@ -32,5 +32,5 @@ export class RunnerGroupNeededError extends NotAcceptableError { name = "RunnerGroupNeededError" @IsString() - message = "Runner's need to be part of one group (team or organisiation)! \n You provided neither." + message = "Runner's need to be part of one group (team or organisation)! \n You provided neither." } \ No newline at end of file diff --git a/src/errors/RunnerOrganisationErrors.ts b/src/errors/RunnerOrganisationErrors.ts index b004acf..081fbf0 100644 --- a/src/errors/RunnerOrganisationErrors.ts +++ b/src/errors/RunnerOrganisationErrors.ts @@ -13,7 +13,7 @@ export class RunnerOrganisationNotFoundError extends NotFoundError { } /** - * Error to throw when two runner organisations' ids don't match. + * Error to throw when two runner organisation's ids don't match. * Usually occurs when a user tries to change a runner organisation's id. */ export class RunnerOrganisationIdsNotMatchingError extends NotAcceptableError { diff --git a/src/errors/ScanStationErrors.ts b/src/errors/ScanStationErrors.ts index c013cf5..3b01f5e 100644 --- a/src/errors/ScanStationErrors.ts +++ b/src/errors/ScanStationErrors.ts @@ -2,7 +2,7 @@ import { IsString } from 'class-validator'; import { NotAcceptableError, NotFoundError } from 'routing-controllers'; /** - * Error to throw, when a non-existant scan station get's loaded. + * Error to throw, when a non-existent scan station get's loaded. */ export class ScanStationNotFoundError extends NotFoundError { @IsString() diff --git a/src/errors/StatsClientErrors.ts b/src/errors/StatsClientErrors.ts index ab7f1ef..68a088d 100644 --- a/src/errors/StatsClientErrors.ts +++ b/src/errors/StatsClientErrors.ts @@ -2,7 +2,7 @@ import { IsString } from 'class-validator'; import { NotAcceptableError, NotFoundError } from 'routing-controllers'; /** - * Error to throw, when a non-existant stats client get's loaded. + * Error to throw, when a non-existent stats client get's loaded. */ export class StatsClientNotFoundError extends NotFoundError { @IsString() diff --git a/src/errors/UserGroupErrors.ts b/src/errors/UserGroupErrors.ts index 7edd6fd..07f4224 100644 --- a/src/errors/UserGroupErrors.ts +++ b/src/errors/UserGroupErrors.ts @@ -2,7 +2,7 @@ import { IsString } from 'class-validator'; import { NotAcceptableError, NotFoundError } from 'routing-controllers'; /** - * Error to throw when no groupname is set. + * Error to throw when no group name is set. */ export class GroupNameNeededError extends NotFoundError { @IsString() @@ -13,7 +13,7 @@ export class GroupNameNeededError extends NotFoundError { } /** - * Error to throw when a usergroup couldn't be found. + * Error to throw when a user group couldn't be found. */ export class UserGroupNotFoundError extends NotFoundError { @IsString() @@ -24,13 +24,13 @@ export class UserGroupNotFoundError extends NotFoundError { } /** - * Error to throw when two usergroups' ids don't match. - * Usually occurs when a user tries to change a usergroups's id. + * Error to throw when two user groups' ids don't match. + * Usually occurs when a user tries to change a user groups's id. */ export class UserGroupIdsNotMatchingError extends NotAcceptableError { @IsString() name = "UserGroupIdsNotMatchingError" @IsString() - message = "The ids don't match!! \n If you wanted to change a usergroup's id: This isn't allowed!" + message = "The ids don't match!! \n If you wanted to change a user group's id: This isn't allowed!" } \ No newline at end of file