Skip to content

Commit 79b57e5

Browse files
committed
[#1945] fix debuglevel exception being shadowed by another exception
"stringValue() called on non-string Element" was being shown instead of "Unsupported debuglevel value 100, expected 0-99".
1 parent 09d02f4 commit 79b57e5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/lib/process/log_parser.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,9 +88,9 @@ void LogConfigParser::parseConfigEntry(isc::data::ConstElementPtr entry) {
8888
isc_throw(BadValue, "");
8989
}
9090
} catch (...) {
91-
isc_throw(BadValue, "Unsupported debuglevel value '"
92-
<< debuglevel_ptr->stringValue()
93-
<< "', expected 0-99 ("
91+
isc_throw(BadValue, "Unsupported debuglevel value "
92+
<< debuglevel_ptr->intValue()
93+
<< ", expected 0-99 ("
9494
<< debuglevel_ptr->getPosition() << ")");
9595
}
9696
}

0 commit comments

Comments
 (0)