#include "stg/locker.h"
#include "stg/user_property.h"
#include "stg/plugin_creator.h"
+#include "stg/logger.h"
#include "rscript.h"
#include "ur_functor.h"
#include "send_functor.h"
NRMapParser nrMapParser;
-if (nrMapParser.ReadFile(subnetFile))
+if (!nrMapParser.ReadFile(subnetFile))
{
- errorStr = nrMapParser.GetErrorStr();
- return -1;
+ netRouters = nrMapParser.GetMap();
+ }
+else
+ {
+ GetStgLogger()("mod_rscript: error opening subnets file '%s'", subnetFile.c_str());
}
-
-netRouters = nrMapParser.GetMap();
return 0;
}