Merge pull request #245 from rharvest/master

fixed throw
This commit is contained in:
danielyxie 2018-05-12 20:21:24 -05:00 committed by GitHub
commit b4f1103761
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1432,7 +1432,7 @@ function NetscriptFunctions(workerScript) {
}
var stock = SymbolToStockMap[symbol];
if (stock == null) {
throw makeRuntimeRejectMsg(workerScript, "Invalid stock symbol passed into getStockPrice()");
throw makeRuntimeRejectMsg(workerScript, "Invalid stock symbol passed into getStockPosition()");
}
return [stock.playerShares, stock.playerAvgPx, stock.playerShortShares, stock.playerAvgShortPx];
},