Browse Source

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

JINMEI Tatuya 12 years ago
parent
commit
c13f4a4ab9
1 changed files with 3 additions and 1 deletions
  1. 3 1
      src/lib/datasrc/memory/zone_table.cc

+ 3 - 1
src/lib/datasrc/memory/zone_table.cc

@@ -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);