diff --git a/c_tools/libzobov/loadZobov.cpp b/c_tools/libzobov/loadZobov.cpp index a1a6cbb..e34ef45 100644 --- a/c_tools/libzobov/loadZobov.cpp +++ b/c_tools/libzobov/loadZobov.cpp @@ -134,11 +134,15 @@ bool loadZobov(const char *descName, const char *adjName, const char *voidsName, } cout << "Loading description" << endl; + int lineid = 1; string line; getline(descFile, line); + lineid++; getline(descFile, line); + lineid++; getline(descFile, line); + lineid++; while (!descFile.eof()) { istringstream lineStream(line.c_str()); @@ -160,7 +164,7 @@ bool loadZobov(const char *descName, const char *adjName, const char *voidsName, >> probability; if (!lineStream) { - cerr << "Error in text stream" << endl; + cerr << "Error in text stream at line " << lineid << endl; abort(); } @@ -187,6 +191,7 @@ bool loadZobov(const char *descName, const char *adjName, const char *voidsName, << actualNumber << ")" << endl; } getline(descFile, line); + lineid++; } cout << "Done loading" << endl;