Page 1 of 1

LatestError tag

Posted: Fri 27 Jan 2012 10:00 am
by nking
It looks like LatestError isn't being cleared after the error status ight has been reviewed/cleared. However, it may also be an error on my site only....

Re: LatestError tag

Posted: Fri 27 Jan 2012 10:17 am
by mcrossley
Doesn't <#LatestError> always reflect the last error, and <#ErrorLight> indicates the state of the error light?
edit: So you should display the error message or not depending on the value of #ErrorLight

Re: LatestError tag

Posted: Fri 27 Jan 2012 10:33 am
by steve
Clicking the error light should clear <#LatestError> - and does for me. Looking at the code it's hard to see how it wouldn't; it's the first thing it does when the light is clicked. Are you perhaps getting another error after clicking on the light? Any error will set <#LatestError>, even if it doesn't cause the light to flash; but I think there is only one error which doesn't flash the light, a particular type of ftp error.

Re: LatestError tag

Posted: Fri 27 Jan 2012 10:35 am
by mcrossley
Thanks for the clarification Steve, this coincidently is something I was going to look at next for my site! I'm off to update the wiki a little...

Re: LatestError tag

Posted: Fri 27 Jan 2012 3:12 pm
by nking
steve wrote:Are you perhaps getting another error after clicking on the light? Any error will set <#LatestError>, even if it doesn't cause the light to flash; but I think there is only one error which doesn't flash the light, a particular type of ftp error.
It's now cleared so I guess it was an error that didn't cause the light to flash.... false alarm by me.