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;