BIND 10 trac2786, updated. a79234992101f76634568d1128e51655ab45b42a [2786] Minor: added option code to the exception string.

BIND 10 source code commits bind10-changes at lists.isc.org
Thu May 16 07:53:49 UTC 2013


The branch, trac2786 has been updated
       via  a79234992101f76634568d1128e51655ab45b42a (commit)
      from  7c7bf1d126cddc59ca3ad540e2c2015853509a51 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit a79234992101f76634568d1128e51655ab45b42a
Author: Marcin Siodelski <marcin at isc.org>
Date:   Thu May 16 09:53:40 2013 +0200

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

-----------------------------------------------------------------------

Summary of changes:
 src/lib/dhcp/option_string.cc |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-----------------------------------------------------------------------
diff --git a/src/lib/dhcp/option_string.cc b/src/lib/dhcp/option_string.cc
index b025732..4108b91 100644
--- a/src/lib/dhcp/option_string.cc
+++ b/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);



More information about the bind10-changes mailing list