Commit 45eb1980 authored by Marcin Siodelski's avatar Marcin Siodelski
Browse files

[3200] In one more AssertionFailure pass the error message as parameter.

parent c936de6a
......@@ -371,9 +371,10 @@ Dhcpv4SrvTest::createPacketFromBuffer(const Pkt4Ptr& src_pkt,
// Parse the new packet and return to the caller.
dst_pkt->unpack();
} catch (const Exception& ex) {
return (::testing::AssertionFailure()
<< "Failed to parse a destination packet: "
<< ex.what());
return (::testing::AssertionFailure(::testing::Message()
<< "Failed to parse a"
<< " destination packet: "
<< ex.what()));
}
return (::testing::AssertionSuccess());
......
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