Commit b30b2d65 authored by Matthieu Tristram's avatar Matthieu Tristram
Browse files

Add version numbers on fitsio error

parent e38ec734
......@@ -814,10 +814,10 @@ class cfitsio_checker
cfitsio_checker()
{
float fitsversion;
planck_assert(fits_get_version(&fitsversion),
"error calling fits_get_version()");
planck_assert (approx<double>(CFITSIO_VERSION,fitsversion),
"mismatch between CFITSIO header and library");
planck_assert(fits_get_version(&fitsversion), "error calling fits_get_version()");
ostringstream name;
name << "mismatch between CFITSIO header (" << CFITSIO_VERSION << ") and library (" << fitsversion << ")";
planck_assert (approx<double>(CFITSIO_VERSION,fitsversion),name.str());
}
};
......
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