Asked — Edited
Is there a method to capture an error in a script but keep processing ? Right now I get an error and the script stops, I would like it to ignore the error and keep going.
Upgrade to ARC Pro
Harnessing the power of ARC Pro, your robot can be more than just a simple automated machine.
Actually, "on-error" commands are common across many scripting and development environments, and most include either a "log and continue", or "ignore and continue" option.
EZ-Script doesn't currently have this capability, but it would not be rocket science for DJ to add it if there were enough demand to push it up to the top of the wish list.
I think most of us have simple enough scripting needs that anyone wanting that advanced capability would be directed towards using a plugin or SDK instead, but I can never predict when DJ will decide something is easy enough to add as a feature, although it is usually right after I describe or create a workaround....
say("The temperature of the house is " + $nest_temp_f + " degrees")
It does update the variables. But it errors out as see below and the script stops.
So if I could continue running the script even though I get the error below, I could read the Nest information.
> Error on line 3: Object reference not set to an instance of an object.
Stay tuned for a future release that will contain the fix if an issue is identified. There has still not been an issue identified and all Nest tests at ezrobot function correctly.