improve error messaging during lightUpdate