Browse Source

[2786] Minor: added option code to the exception string.

Marcin Siodelski 12 years ago
parent
commit
a792349921
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/lib/dhcp/option_string.cc

+ 2 - 1
src/lib/dhcp/option_string.cc

@@ -73,7 +73,8 @@ void
 OptionString::unpack(OptionBufferConstIter begin,
                      OptionBufferConstIter end) {
     if (std::distance(begin, end) == 0) {
-        isc_throw(isc::OutOfRange, "failed to parse an option holding string value"
+        isc_throw(isc::OutOfRange, "failed to parse an option '"
+                  << getType() << "' holding string value"
                   << " - empty value is not accepted");
     }
     data_.assign(begin, end);