From d272bd4e059f3f4c1b321175ee61a176f55f968a Mon Sep 17 00:00:00 2001 From: "Gustavo J. A. M. Carneiro" Date: Thu, 2 Aug 2007 14:47:51 +0100 Subject: [PATCH] Replace the stdout "warning" with a NS_FATAL_ERROR --- src/core/debug.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/debug.cc b/src/core/debug.cc index abd91b504..181bb9622 100644 --- a/src/core/debug.cc +++ b/src/core/debug.cc @@ -24,6 +24,7 @@ #include "debug.h" #include "assert.h" #include "ns3/core-config.h" +#include "fatal-error.h" #ifdef HAVE_STDLIB_H #include @@ -88,7 +89,7 @@ DebugComponentEnableEnvVar (void) } if (!found) { - std::cout << "No debug component named=\"" << tmp << "\"" << std::endl; + NS_FATAL_ERROR ("No debug component named=\"" << tmp << "\""); } if (next == std::string::npos) {