call error event on invalidated file