no need to turn off stderr in enumeration since they are fatal and therefore no need for debug.hpp

This commit is contained in:
Dane Springmeyer 2013-01-03 19:51:00 -08:00
parent e682705a86
commit 100f07c5da

View file

@ -25,7 +25,6 @@
// mapnik
#include <mapnik/config.hpp>
#include <mapnik/debug.hpp>
// stl
#include <vector>
@ -261,21 +260,17 @@ public:
{
if (our_strings_[i] == 0 )
{
MAPNIK_LOG_ERROR(enumeration)
<< "### FATAL: Not enough strings for enum "
std::cerr << "### FATAL: Not enough strings for enum "
<< our_name_ << " defined in file '" << filename
<< "' at line " << line_no;
//std::exit(1);
}
}
if ( std::string("") != our_strings_[THE_MAX])
{
MAPNIK_LOG_ERROR(enumeration)
<< "### FATAL: The string array for enum " << our_name_
<< " defined in file '" << filename << "' at line " << line_no
<< " has too many items or is not terminated with an "
<< "empty string";
//std::exit(1);
std::cerr << "### FATAL: The string array for enum " << our_name_
<< " defined in file '" << filename << "' at line " << line_no
<< " has too many items or is not terminated with an "
<< "empty string";
}
return true;
}