Replace the stdout "warning" with a NS_FATAL_ERROR

This commit is contained in:
Gustavo J. A. M. Carneiro
2007-08-02 14:47:51 +01:00
parent 67e42e8600
commit d272bd4e05

View File

@@ -24,6 +24,7 @@
#include "debug.h"
#include "assert.h"
#include "ns3/core-config.h"
#include "fatal-error.h"
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
@@ -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)
{