Commit c5beaae66dd2b7402138442b737f53e74f97621e
1 parent
10672298
Catch exceptions by reference.
Showing
3 changed files
with
3 additions
and
3 deletions
src/ctbin/ctbin.cpp
| ... | ... | @@ -409,7 +409,7 @@ void ctbin::get_parameters(void) |
| 409 | 409 | } |
| 410 | 410 | |
| 411 | 411 | // ... otherwise try to open as XML file |
| 412 | - catch (GException::fits_open_error) { | |
| 412 | + catch (GException::fits_open_error &e) { | |
| 413 | 413 | |
| 414 | 414 | // Load observations from XML file |
| 415 | 415 | m_obs.load(m_evfile); | ... | ... |
src/ctlike/ctlike.cpp
| ... | ... | @@ -367,7 +367,7 @@ void ctlike::get_parameters(void) |
| 367 | 367 | } |
| 368 | 368 | |
| 369 | 369 | // ... otherwise try to open as XML file |
| 370 | - catch (GException::fits_open_error) { | |
| 370 | + catch (GException::fits_open_error &e) { | |
| 371 | 371 | |
| 372 | 372 | // Load observations from XML file |
| 373 | 373 | m_obs.load(filename); | ... | ... |
src/ctselect/ctselect.cpp
| ... | ... | @@ -414,7 +414,7 @@ void ctselect::get_parameters(void) |
| 414 | 414 | } |
| 415 | 415 | |
| 416 | 416 | // ... otherwise try to open as XML file |
| 417 | - catch (GException::fits_open_error) { | |
| 417 | + catch (GException::fits_open_error &e) { | |
| 418 | 418 | |
| 419 | 419 | // Load observations from XML file |
| 420 | 420 | m_obs.load(m_infile); | ... | ... |