add error callback to GridLayer