Fix exception messages and docstring in capacity-scaling min-cost flow