2
0
mirror of https://gitlab.isc.org/isc-projects/kea synced 2025-08-29 13:07:50 +00:00

[4307] Fixed CID 1202702

This commit is contained in:
Francis Dupont 2016-02-23 22:57:58 +01:00
parent cac9c6712f
commit b51ce48059

View File

@ -1,4 +1,4 @@
// Copyright (C) 2011-2015 Internet Systems Consortium, Inc. ("ISC")
// Copyright (C) 2011-2016 Internet Systems Consortium, Inc. ("ISC")
//
// This Source Code Form is subject to the terms of the Mozilla Public
// License, v. 2.0. If a copy of the MPL was not distributed with this
@ -559,7 +559,11 @@ main(int argc, char* argv[]) {
// Format with arguments
vector<string> args(e.arguments());
for (size_t i(0); i < args.size(); ++ i) {
replacePlaceholder(&text, args[i], i + 1);
try {
replacePlaceholder(&text, args[i], i + 1);
} catch (...) {
// Error in error handling: nothing right to do...
}
}
cerr << text << "\n";