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) {