code: def error_info():
      
      worker = global_worker
      worker.check_connected()
      return (global_state.error_messages(driver_id=worker.task_driver_id) +
              global_state.error_messages(driver_id=DriverID.nil()))
docs: Return information about failed tasks.