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

present more specific information to the user in case of a format

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.
mismatch


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 4510
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 9f1c3c05
......@@ -248,6 +248,12 @@ c S there folloes a SRCE line
double inlibversion=atof(theline.substr(5,7).c_str());
if (inlibversion>STAT::libversion)
{
std::cerr << "ERROR (STAT::read): "
<< "data file has format version "
<< inlibversion << std::endl;
std::cerr << "ERROR (STAT::read): "
<< "library can decode formats up to version "
<< STAT::libversion << std::endl;
throw
GSE2::Terror("ERROR (STAT::read): file library version too large!");
}
......@@ -257,6 +263,14 @@ c S there folloes a SRCE line
// std::cerr << "theline.lv " << theline.substr(5,6) << std::endl;
// std::cerr << "inlibversion " << inlibversion << std::endl;
// std::cerr << "decode_libversion " << decode_libversion << std::endl;
std::cerr << "ERROR (STAT::read): "
<< "data file has format version "
<< inlibversion << std::endl;
std::cerr << "ERROR (STAT::read): "
<< "library can decode formats from version "
<< STAT::decode_libversion
<< " up to version "
<< STAT::libversion << std::endl;
throw
GSE2::Terror("ERROR (STAT::read): incompatible SFF version!");
}
......
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