Commit c13f4a4a authored by JINMEI Tatuya's avatar JINMEI Tatuya
Browse files

[2905] revised an exception what() message to be hopefully more unstandable.

parent c82208ea
......@@ -89,7 +89,9 @@ ZoneTable::addZone(util::MemorySegment& mem_sgmt, RRClass zone_class,
arg(zone_name).arg(rrclass_);
if (!content || content->isEmpty()) {
isc_throw(InvalidParameter, "Zone content must not be NULL or empty");
isc_throw(InvalidParameter,
(content ? "empty data" : "NULL") <<
" is passed to Zone::addZone");
}
SegmentObjectHolder<ZoneData, RRClass> holder(mem_sgmt, zone_class);
holder.set(content);
......
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