From 8d9f63f49f6c2cfe378eea312bdb7351435a759a Mon Sep 17 00:00:00 2001 From: Sol Date: Thu, 22 Aug 2024 01:48:55 +0100 Subject: [PATCH] UI: Fix incorrect information given in pserv upgrade error msg. (#1602) --- src/Server/ServerPurchases.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Server/ServerPurchases.ts b/src/Server/ServerPurchases.ts index bf4b93e0a..62ad79714 100644 --- a/src/Server/ServerPurchases.ts +++ b/src/Server/ServerPurchases.ts @@ -47,7 +47,7 @@ export const getPurchasedServerUpgradeCost = (hostname: string, ram: number): nu if (isNaN(ram) || !isPowerOfTwo(ram) || !(Math.sign(ram) === 1)) throw new Error(`${ram} is not a positive power of 2`); if (server.maxRam >= ram) - throw new Error(`'${hostname}' current ram (${server.maxRam}) is not bigger than new ram (${ram})`); + throw new Error(`The new ram of '${hostname}' (${ram}) must be bigger than its current ram (${server.maxRam}).`); return getPurchaseServerCost(ram) - getPurchaseServerCost(server.maxRam); };