From 4bbacab09faa16054444f6649fad8ad525d4d0e4 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Wed, 28 Jun 2023 17:16:59 -0400 Subject: [PATCH] fix(striker-ui-api): no response body, unspecific fail assert message in create/update UPS --- striker-ui-api/src/lib/request_handlers/ups/createUps.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/striker-ui-api/src/lib/request_handlers/ups/createUps.ts b/striker-ui-api/src/lib/request_handlers/ups/createUps.ts index 04694727..7d37b351 100644 --- a/striker-ui-api/src/lib/request_handlers/ups/createUps.ts +++ b/striker-ui-api/src/lib/request_handlers/ups/createUps.ts @@ -9,7 +9,7 @@ import { stderr, uuid } from '../../shell'; export const createUps: RequestHandler< { uuid?: string }, - UpsOverview, + undefined, { agent: string; ipAddress: string; name: string } > = async (request, response) => { const { @@ -43,7 +43,7 @@ export const createUps: RequestHandler< `UPS UUID must be a valid UUIDv4; got [${upsUuid}]`, ); } catch (error) { - stderr(`Assert value failed during create UPS; CAUSE: ${error}`); + stderr(`Assert value failed when working with UPS; CAUSE: ${error}`); return response.status(400).send(); }