diff --git a/src/ImageData/CartaFitsImage.cc b/src/ImageData/CartaFitsImage.cc index 60c05eed0..9f063e9be 100644 --- a/src/ImageData/CartaFitsImage.cc +++ b/src/ImageData/CartaFitsImage.cc @@ -243,8 +243,8 @@ fitsfile* CartaFitsImage::OpenFile() { char err_text[30]; fits_get_errstatus(status, err_text); std::string error(err_text); - throw(casacore::AipsError("Error opening FITS file: " + error)); std::cout << "\n Ming-Yi set Passing Point A \n"; + throw(casacore::AipsError("Error opening FITS file: " + error)); } // Advance to requested hdu @@ -1296,9 +1296,9 @@ void CartaFitsImage::ReadBeamsTable(casacore::ImageInfo& image_info) { fits_open_file(&fptr, _filename.c_str(), 0, &status); if (status) { - throw(casacore::AipsError("Error opening FITS file.")); std::cout << "\n Ming-Yi set Passing Point B \n"; std::cout << status << "\n"; + throw(casacore::AipsError("Error opening FITS file.")); } // Open binary table extension with name BEAMS diff --git a/src/ImageData/FitsLoader.cc b/src/ImageData/FitsLoader.cc index f278c6d0d..9cf3fb7ff 100644 --- a/src/ImageData/FitsLoader.cc +++ b/src/ImageData/FitsLoader.cc @@ -305,9 +305,9 @@ bool FitsLoader::Is64BitBeamsTable(const std::string& filename) { fits_open_file(&fptr, filename.c_str(), 0, &status); if (status) { - spdlog::error("Error opening FITS file."); std::cout << "\n Ming-Yi set Passing Point C \n"; std::cout << status << "\n"; + spdlog::error("Error opening FITS file."); return false; }