fix incorrect logging of network errors