From c1d784e29c80b71a499d5bdd08b897561e235979 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sun, 20 Dec 2020 18:42:57 +0100 Subject: [PATCH] Fixed messages and comments for PermissionErrors ref #39 --- src/errors/PermissionErrors.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/errors/PermissionErrors.ts b/src/errors/PermissionErrors.ts index c2492b4..fdd7215 100644 --- a/src/errors/PermissionErrors.ts +++ b/src/errors/PermissionErrors.ts @@ -13,7 +13,7 @@ export class PermissionNotFoundError extends NotFoundError { } /** - * Error to throw when two permission' ids don't match. + * Error to throw when two permissions' ids don't match. * Usually occurs when a user tries to change a permission's id. */ export class PermissionIdsNotMatchingError extends NotAcceptableError { @@ -21,11 +21,11 @@ export class PermissionIdsNotMatchingError extends NotAcceptableError { name = "PermissionIdsNotMatchingError" @IsString() - message = "The id's don't match!! \n And if you wanted to change a permission's id: This isn't allowed" + message = "The id's don't match!! \n And if you wanted to change a permission's id: This isn't allowed!" } /** - * Error to throw when a permission get's provided without a principal. + * Error to throw when a permission gets provided without a principal. */ export class PermissionNeedsPrincipalError extends NotAcceptableError { @IsString()