diff --git a/Attractor.hpp b/Attractor.hpp index 76cd16d..afb4530 100644 --- a/Attractor.hpp +++ b/Attractor.hpp @@ -2,6 +2,7 @@ #define ATTRACTOR_HPP #include "Logger.hpp" +#include #include #include @@ -17,7 +18,10 @@ public: LogInfo("Reading file '%s'...\n", filename.c_str()); stfu::node system; - system.read(filename.c_str()); + if(!system.read(filename.c_str())){ + std::cerr << "Couldn't open file(" << filename << ") for reading\n"; + exit(-1); + } kernel = AttractorKernel::createAttractorKernel(system.getChild("AttractorKernel")); projector = Projector::createProjector(system.getChild(system.getValue("Projector")), kernel->getDimension());