fix error message

This commit is contained in:
pigalot 2022-01-13 19:17:13 +00:00
parent 6533913b3b
commit 1b1dc20c16

@ -675,7 +675,7 @@ export function NetscriptCorporation(
issueDividends: function (apercent: any): void { issueDividends: function (apercent: any): void {
checkAccess("issueDividends"); checkAccess("issueDividends");
const percent = helper.number("issueDividends", "percent", apercent); const percent = helper.number("issueDividends", "percent", apercent);
if (percent < 0 || percent > 100) throw new Error("Invalid value for Cost Per Employee field! Must be numeric, grater than 0, and less than 100"); if (percent < 0 || percent > 100) throw new Error("Invalid value for percent field! Must be numeric, grater than 0, and less than 100");
const corporation = getCorporation(); const corporation = getCorporation();
IssueDividends(corporation, percent); IssueDividends(corporation, percent);
}, },