Welcome to Smart Home Forum by FIBARO
Search the Community
Showing results for tags 'error reporting'.
I have a weird behavior with my HC3. When I make an error in my code, the program stops but there is no error showing in the console. After a few seconds, it automatically restarts the program. It only shows me parentheses errors, "end" missing or = missing or handlejson error. But nothing else. It also often happens that the HC3 is no longer accessible for several minutes following an error without it being a loop problem. And still without displaying an error in the console. Is it normal ? Thanks for your help.
HI, I'm reasonably sure I did't see this prior to 4.120 With the following code if (tonumber(os.date("%w")) > 0 and tonumber(os.date("%w")) < 6 and fibaro:getGlobalValue(schoolState) == schoolStateMapping.No then fibaro:debug("Info: Running weekday and no school main code sequence..") buildMsg() weekdayOff() MumDadGreeting() return end I am getting the following error The problem is typo and I have one too many parenthesis (just after the if) It is reporting the correct line # but I thought that prior to 4.120, this would have been reported as something like "expected ( after blah' or 'expected then after blah' Perhaps it was always there but it seems like a poor description for what was actually wrong in the code Thoights -f