error message if next port is less than min_port