[Debian-astro-commits] [gyoto] 93/221: Screen::fitsReadMask(): if file can't be openned, just issue a warning.
Thibaut Jean-Claude Paumard
thibaut at moszumanska.debian.org
Fri May 22 20:52:36 UTC 2015
This is an automated email from the git hooks/post-receive script.
thibaut pushed a commit to branch master
in repository gyoto.
commit 9fd5a3941bd862652f93642809e9dba2dbe9a5f8
Author: Thibaut Paumard <paumard at users.sourceforge.net>
Date: Wed Nov 19 14:53:19 2014 +0100
Screen::fitsReadMask(): if file can't be openned, just issue a warning.
---
lib/Screen.C | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/Screen.C b/lib/Screen.C
index 096b0a1..918918a 100644
--- a/lib/Screen.C
+++ b/lib/Screen.C
@@ -702,7 +702,11 @@ void Screen::fitsReadMask(std::string filename) {
long fpixel[] = {1, 1, 1};
long inc [] = {1, 1, 1};
char ermsg[31] = ""; // ermsg is used in throwCfitsioError()
- if (fits_open_file(&fptr, pixfile, 0, &status)) throwCfitsioError(status) ;
+ if (fits_open_file(&fptr, pixfile, 0, &status)) {
+ GYOTO_WARNING << "Unable to read Screen mask file '"
+ << filename << "', ignoring." << endl;
+ return;
+ }
if (fits_get_img_size(fptr, 3, naxes, &status)) throwCfitsioError(status) ;
if (naxes[0] != naxes[1])
throwError("Screen::fitsReadMask(): mask must be square");
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-astro/packages/gyoto.git
More information about the Debian-astro-commits
mailing list