This improves error messages when the counts line is invalid and the calls to substr() return raw C++ errors.