Skip to content
Snippets Groups Projects
Commit 4292a637 authored by Xavier Robin's avatar Xavier Robin
Browse files

fix: mangled error messages

parent 6e9401dc
No related branches found
No related tags found
No related merge requests found
...@@ -123,7 +123,8 @@ void PDBReader::ParseCompndEntry (const StringRef& line, int line_num) ...@@ -123,7 +123,8 @@ void PDBReader::ParseCompndEntry (const StringRef& line, int line_num)
<< ": record is too short"); << ": record is too short");
return; return;
} }
std::stringstream ss("invalid COMPND record on line "); std::stringstream ss;
ss << "invalid COMPND record on line ";
ss << line_num <<": record is too short"; ss << line_num <<": record is too short";
throw IOException(ss.str()); throw IOException(ss.str());
} }
...@@ -133,7 +134,8 @@ void PDBReader::ParseCompndEntry (const StringRef& line, int line_num) ...@@ -133,7 +134,8 @@ void PDBReader::ParseCompndEntry (const StringRef& line, int line_num)
<< ": record is too long"); << ": record is too long");
return; return;
} }
std::stringstream ss("invalid COMPND record on line "); std::stringstream ss;
ss << "invalid COMPND record on line ";
ss << line_num <<": whole record is too long"; ss << line_num <<": whole record is too long";
throw IOException(ss.str()); throw IOException(ss.str());
} }
...@@ -255,7 +257,8 @@ void PDBReader::ParseSeqRes(const StringRef& line, int line_num) ...@@ -255,7 +257,8 @@ void PDBReader::ParseSeqRes(const StringRef& line, int line_num)
<< ": record is too short"); << ": record is too short");
return; return;
} }
std::stringstream ss("invalid SEQRES record on line "); std::stringstream ss;
ss << "invalid SEQRES record on line ";
ss << line_num <<": record is too short"; ss << line_num <<": record is too short";
throw IOException(ss.str()); throw IOException(ss.str());
} }
...@@ -942,7 +945,8 @@ void PDBReader::ParseConectEntry (const StringRef& line, int line_num, mol::Enti ...@@ -942,7 +945,8 @@ void PDBReader::ParseConectEntry (const StringRef& line, int line_num, mol::Enti
<< ": record is too short"); << ": record is too short");
return; return;
} }
std::stringstream ss("invalid CONECT record on line "); std::stringstream ss;
ss << "invalid CONECT record on line ";
ss << line_num <<": record is too short"; ss << line_num <<": record is too short";
throw IOException(ss.str()); throw IOException(ss.str());
} }
...@@ -952,7 +956,8 @@ void PDBReader::ParseConectEntry (const StringRef& line, int line_num, mol::Enti ...@@ -952,7 +956,8 @@ void PDBReader::ParseConectEntry (const StringRef& line, int line_num, mol::Enti
<< ": record is too long"); << ": record is too long");
return; return;
} }
std::stringstream ss("invalid CONECT record on line "); std::stringstream ss;
ss << "invalid CONECT record on line ";
ss << line_num <<": whole record is too long"; ss << line_num <<": whole record is too long";
throw IOException(ss.str()); throw IOException(ss.str());
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment