diff --git a/Generators/Pythia8_i/src/Pythia8_i.cxx b/Generators/Pythia8_i/src/Pythia8_i.cxx index a87462771e3667d7ba3e1662662d6c81e6eeef30..3c6c1d18029313cc64906aef1251872bd179459b 100644 --- a/Generators/Pythia8_i/src/Pythia8_i.cxx +++ b/Generators/Pythia8_i/src/Pythia8_i.cxx @@ -134,7 +134,7 @@ StatusCode Pythia8_i::genInitialize() { } } - }catch(Pythia8_i::CommandException err){ + }catch(const Pythia8_i::CommandException& err){ ATH_MSG_ERROR(err.what()); return StatusCode::FAILURE; } @@ -184,7 +184,7 @@ StatusCode Pythia8_i::genInitialize() { return StatusCode::FAILURE; } } - }catch(CommandException err){ + }catch(const CommandException& err){ ATH_MSG_ERROR(err.what()); return StatusCode::FAILURE; }