Commit 580d7217 authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

return format ID upon error

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 5341
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent f1ba1a1e
......@@ -84,7 +84,10 @@ namespace datrw {
else if (id==ascii::streamID) { retval=Fascii; }
else if (id==binary::streamID) { retval=Fbinary; }
else if (id==thiesdl1::streamID) { retval=Fthiesdl1; }
else { DATRW_abort("unknown data type identifier!"); }
else {
std::cerr << "selected data format ID: \"" << id << "\"" << std::endl;
DATRW_abort("unknown data type identifier!");
}
return(retval);
} // Eformat anyID(const std::string& identifier)
......
Markdown is supported
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