error messages to specify missing variable

Give it a try, it costs you nothing !
Post Reply
Stuart
Posts: 138
Joined: Fri Feb 19, 2021 7:46 pm
Has thanked: 5 times
Been thanked: 20 times

error messages to specify missing variable

Post by Stuart »

Error messages like this

error no.4:No such variable on line 892 (reported by my error handler)

are helpful, but it would be even more helpful if they could have access to the name of the missing variable, which I assume has to be known. Especially as sometimes it does not seem to be a valid complaint.
User avatar
cicciocb
Site Admin
Posts: 2060
Joined: Mon Feb 03, 2020 1:15 pm
Location: Toulouse
Has thanked: 439 times
Been thanked: 1358 times
Contact:

Re: error messages to specify missing variable

Post by cicciocb »

Yes I understand the point and I'll try to implement this.
Eventually I could just return the position, on the line, where the error is detected (i.e. No such variable on line 892:22 for an error at the position 22)
Post Reply