From 39ac1d827621b972d4df2958cefb39aad3e5b207 Mon Sep 17 00:00:00 2001 From: Sainan Date: Mon, 23 Dec 2024 06:41:09 +0100 Subject: [PATCH] fix: wrong error message --- src/services/shipService.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/shipService.ts b/src/services/shipService.ts index ae11c9d2..5cd1202c 100644 --- a/src/services/shipService.ts +++ b/src/services/shipService.ts @@ -23,8 +23,8 @@ export const getShip = async (shipId: Types.ObjectId, fieldSelection: string = " const ship = await Ship.findOne({ _id: shipId }, fieldSelection); if (!ship) { - logger.error(`error finding a ship for account ${shipId}`); - throw new Error(`error finding a ship for account ${shipId}`); + logger.error(`error finding a ship with id ${shipId}`); + throw new Error(`error finding a ship with id ${shipId}`); } return ship;