GetDistance unknown ID error is misleading
if we do
GetDistance "dagoth velos"
an "unknown id" error is thrown which is misleading because the id is actually valid(vanilla id). Apart from that, any script running a similar syntax will fail and stop executing thereafter. The command will return such errors when the object is not placed in the world yet.
This may be actually 2 issues, but there are suggested approaches here:
To change "unknown id" to "object not found", and ignore that line in scripts.
Execute it normally and return distance the same way as it is implemented for objects of different cells.
Throw "object not found" warning, but still execute it using 2nd approach.
Change the error message, but script will still stop executing.
On a side note, some other commands can throw similar misleading errors as well, such as gethealth, getpos, getangle etc..