Skip to content

Commit 6063530

Browse files
committed
fixing error code path when we don't find trans id
1 parent fee1a91 commit 6063530

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Code.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ function updateTransactionsAll() {
7272
if (transactions == false) {throw new Error("problem loading transactions");}
7373
let {parsedTransactions_2d, months, days} = parseTransactions(transactions, LMCategories, plaidAccountNames, assetAccountNames);
7474
let row = findIdTransactionsAll(parsedTransactions_2d[0][0].toFixed(0), transactionsAllSheet, transactionsAllLastRow);
75-
if (row < 0) { throw new Error('Didn\'t find transaction id: ' + id); }
75+
if (row < 0) { throw new Error('Didn\'t find transaction id: ' + parsedTransactions_2d[0][0].toFixed(0)); }
7676
let transactionsLength = parsedTransactions_2d.length;
7777
if (transactionsLength >= LMTransactionsLookback) {throw new Error('CAUTION! LMTransactionsLookback is not large enough!');}
7878
if (transactionsAllSheet.getMaxRows() < row+transactionsLength+60) {

0 commit comments

Comments
 (0)