Skip to content

Commit fa8db98

Browse files
davidrohrkostorr
authored andcommitted
Catch polymorphic type by reference to avoid CC8 compile warning
1 parent ff53757 commit fa8db98

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/CommandLineUtilities/ProgramConfig.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ class ProgramConfig : public Program
229229
std::cout << "Configuring with config uri" << std::endl;
230230
try {
231231
CardConfigurator(cardId, mOptions.configUri, mOptions.forceConfig);
232-
} catch (std::runtime_error e) {
232+
} catch (std::runtime_error& e) {
233233
std::cout << "Error parsing the configuration..." << boost::diagnostic_information(e) << std::endl;
234234
}
235235
}

0 commit comments

Comments
 (0)