diff --git a/src/ctbin/ctbin.cpp b/src/ctbin/ctbin.cpp index 6790f96..15bdecb 100644 --- a/src/ctbin/ctbin.cpp +++ b/src/ctbin/ctbin.cpp @@ -409,7 +409,7 @@ void ctbin::get_parameters(void) } // ... otherwise try to open as XML file - catch (GException::fits_open_error) { + catch (GException::fits_open_error &e) { // Load observations from XML file m_obs.load(m_evfile); diff --git a/src/ctlike/ctlike.cpp b/src/ctlike/ctlike.cpp index 0526b2c..82d0274 100644 --- a/src/ctlike/ctlike.cpp +++ b/src/ctlike/ctlike.cpp @@ -367,7 +367,7 @@ void ctlike::get_parameters(void) } // ... otherwise try to open as XML file - catch (GException::fits_open_error) { + catch (GException::fits_open_error &e) { // Load observations from XML file m_obs.load(filename); diff --git a/src/ctselect/ctselect.cpp b/src/ctselect/ctselect.cpp index ccd8e82..5c06db7 100644 --- a/src/ctselect/ctselect.cpp +++ b/src/ctselect/ctselect.cpp @@ -414,7 +414,7 @@ void ctselect::get_parameters(void) } // ... otherwise try to open as XML file - catch (GException::fits_open_error) { + catch (GException::fits_open_error &e) { // Load observations from XML file m_obs.load(m_infile);