WSL/SLF GitLab Repository

Commit f130bc85 authored by Thomas Egger's avatar Thomas Egger
Browse files

Removing cerr printouts in libsmet

parent 99c544dd
......@@ -865,15 +865,13 @@ void SMETReader::read_header(std::ifstream& fin)
SMETCommon::stripComments(line);
SMETCommon::readLineToVec(line, tmpvec);
checkSignature(tmpvec, isAscii);
std::cerr << "Line read:" << line << "\n";
//2. Read Header
while (!fin.eof() && (fin.peek() != '[')) {//skip lines until '[' is found
while (!fin.eof() && (fin.peek() != '[')) //skip lines until '[' is found
getline(fin, line, eoln);
std::cerr << "Seek:" << line << "\n";
}
getline(fin, line, eoln);
std::cerr << "Header line read:" << line << "\n";
SMETCommon::stripComments(line);
SMETCommon::trim(line);
SMETCommon::toUpper(line);
......@@ -1113,7 +1111,7 @@ void SMETReader::read_data_ascii(std::ifstream& fin, std::vector<std::string>& v
}
current_fpointer = tmp_fpointer;
} catch(SMETException&) {
std::cerr << "Error reading file \"" << filename << "\" at line \"" << line << "\"" << std::endl;
cerr << "Error reading file \"" << filename << "\" at line \"" << line << "\"" << endl;
throw;
}
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment