monescript
monescript copied to clipboard
more helpful error messages ?
tried to open my ledger journal in monescript and i'm just getting "failing on line:" which isn't really all that helpful as it's not telling me what i'm doing wrong .
as far as i can tell, it's formatted correctly, i've referenced the readme several times, i also couldn't find any other documentation anywhere, so not really sure if there's some syntactical quirk i'm missing .
for reference, here's the error i'm getting:
Failing on line {
"type": "data",
"value": "2021/05/12 * init @ init > aset : initialization \n\tinit\n\taset:chas:chek +$0477.64 \n\taset:chas:savn +$0100.00 \n\taset:cshp +$0000.00 \n",
"text": "2021/05/12 * init @ init > aset : initialization \n\tinit\n\taset:chas:chek +$0477.64 \n\taset:chas:savn +$0100.00 \n\taset:cshp +$0000.00 \n",
"offset": 3806,
"lineBreaks": 5,
"line": 128,
"col": 1
}
and the line it's referencing:
2021/05/12 * init @ init > aset : initialization
init
aset:chas:chek +$0477.64
aset:chas:savn +$0100.00
aset:cshp +$0000.00
after a bit more experimenting, i think the issue might be that it doesn't like my shorthand account variables ? seems to not understand "aset" or "init" still not entirely clear but that seems to be an issue