Commit 25af754f authored by Marcin Siodelski's avatar Marcin Siodelski

[1956] Catch exceptions as const reference.

parent 968d486c
...@@ -75,7 +75,7 @@ PerfPkt6::rawPack() { ...@@ -75,7 +75,7 @@ PerfPkt6::rawPack() {
// but still some options have to be updated if client // but still some options have to be updated if client
// specified them along with their offsets in the buffer. // specified them along with their offsets in the buffer.
rawPackOptions(); rawPackOptions();
} catch (isc::BadValue& e) { } catch (const isc::BadValue& e) {
cout << "Building packet failed: " << e.what() << endl; cout << "Building packet failed: " << e.what() << endl;
return (false); return (false);
} }
...@@ -102,7 +102,7 @@ PerfPkt6::rawUnpack() { ...@@ -102,7 +102,7 @@ PerfPkt6::rawUnpack() {
msg_type_ = data_[0]; msg_type_ = data_[0];
try { try {
rawUnpackOptions(); rawUnpackOptions();
} catch (isc::BadValue& e) { } catch (const isc::BadValue& e) {
cout << "Packet parsing failed: " << e.what() << endl; cout << "Packet parsing failed: " << e.what() << endl;
return (false); return (false);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment