LOGIN  |  REGISTER
Smart Living Made Brilliant!
CASTLEOS FORUM

HomeBetas

Report bugs and issues related to beta testing here, so as to not confuse those with stable releases.

Condition Scripts with errors crash CastleOS Messages in this topic - RSS

Phil Hawthorne
Phil Hawthorne
Posts: 400


4/3/2016
Phil Hawthorne
Phil Hawthorne
Posts: 400
With the change of function name for the WriteDatabaseEntry method, my ping.cs script now fails.

When my lights check to see if the TV is still on, it calls WriteDatabaseEntry. However, now that method doesn't exist, it crashes. CastleOS fails, and can not be accessed until it restarts.

It should be like Core scripts, where they don't crash CastleOS
0 link
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3366


4/3/2016
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3366
So you're saying a condition script will crash the service, but an action script will not?
0 link
Phil Hawthorne
Phil Hawthorne
Posts: 400


4/3/2016
Phil Hawthorne
Phil Hawthorne
Posts: 400
Chris Cicchitelli wrote:
So you're saying a condition script will crash the service, but an action script will not?


Correct
0 link
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3366


4/10/2016
Chris Cicchitelli
Chris Cicchitelli
Administrator
Posts: 3366
Fixed, thank you. It was missing try/catch block smile
0 link