From 5de81ad0939cd870ff960c303930147f81144781 Mon Sep 17 00:00:00 2001 From: Nicolai Ort Date: Sun, 20 Dec 2020 18:45:10 +0100 Subject: [PATCH] Fixed messages and comments for RunnerErrors ref #39 --- src/errors/RunnerErrors.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/errors/RunnerErrors.ts b/src/errors/RunnerErrors.ts index 06dc78f..b73b593 100644 --- a/src/errors/RunnerErrors.ts +++ b/src/errors/RunnerErrors.ts @@ -3,7 +3,6 @@ import { NotAcceptableError, NotFoundError } from 'routing-controllers'; /** * Error to throw when a runner couldn't be found. - * Implemented this ways to work with the json-schema conversion for openapi. */ export class RunnerNotFoundError extends NotFoundError { @IsString() @@ -16,14 +15,13 @@ export class RunnerNotFoundError extends NotFoundError { /** * Error to throw when two runners' ids don't match. * Usually occurs when a user tries to change a runner's id. - * Implemented this ways to work with the json-schema conversion for openapi. */ export class RunnerIdsNotMatchingError extends NotAcceptableError { @IsString() name = "RunnerIdsNotMatchingError" @IsString() - message = "The id's don't match!! \n And if you wanted to change a runner's id: This isn't allowed" + message = "The id's don't match!! \n And if you wanted to change a runner's id: This isn't allowed!" } /**