log errors if we don't emit them; include fileObj with error emit