csv-parser icon indicating copy to clipboard operation
csv-parser copied to clipboard

Something is wrong with input stream

Open Kemerd opened this issue 2 years ago • 1 comments

        explicit CsvParser(std::istream& input) : m_input(input) {
            // Reserve space upfront to improve performance
            m_fieldbuf.reserve(FIELDBUF_CAP);
            if (!m_input.good()) {
                throw std::runtime_error("Something is wrong with input stream");
            }
        }

Kemerd avatar Jan 18 '23 03:01 Kemerd

Hi bro, have you solved this issue, please?

jia-xinyu avatar Mar 22 '23 03:03 jia-xinyu

Hi! Maybe there's some way to give a better error here, but it just means there's an issue with the providing input stream. Maybe the file is missing or something else has gone wrong. This just lets you know in advance, we cannot read from it.

AriaFallah avatar Apr 02 '24 01:04 AriaFallah