From 2199cb0aef340034644d7b9204a215e539fd6005 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sun, 20 Dec 2020 18:50:45 +0100 Subject: [PATCH] Fixed messages and comments for UserGroupErrors ref #39 --- src/errors/UserGroupErrors.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/errors/UserGroupErrors.ts b/src/errors/UserGroupErrors.ts index 15495b9..7edd6fd 100644 --- a/src/errors/UserGroupErrors.ts +++ b/src/errors/UserGroupErrors.ts @@ -2,14 +2,14 @@ import { IsString } from 'class-validator'; import { NotAcceptableError, NotFoundError } from 'routing-controllers'; /** - * Error to throw when no groupname is set + * Error to throw when no groupname is set. */ export class GroupNameNeededError extends NotFoundError { @IsString() name = "GroupNameNeededError" @IsString() - message = "no groupname is set!" + message = "No name is set for this group!" } /** @@ -32,5 +32,5 @@ export class UserGroupIdsNotMatchingError extends NotAcceptableError { name = "UserGroupIdsNotMatchingError" @IsString() - message = "The id's 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 usergroup's id: This isn't allowed!" } \ No newline at end of file