handle Error objects in data field