Parcourir la source

[4307] Fixed CID 1202702

Francis Dupont il y a 9 ans
Parent
commit
b51ce48059
1 fichiers modifiés avec 6 ajouts et 2 suppressions
  1. 6 2
      src/lib/log/compiler/message.cc

+ 6 - 2
src/lib/log/compiler/message.cc

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