#include <Pluma/uce-dirent.h>\r
#include <cstdio>\r
#include <queue>\r
+#include <stdexcept>\r
\r
\r
namespace pluma{\r
dir = opendir(folder.c_str());\r
if (dir == NULL){\r
// could not open directory\r
- fprintf(stderr, "Could not open \"%s\" directory.\n", folder.c_str());\r
+ // fprintf(stderr, "Could not open \"%s\" directory.\n", folder.c_str());\r
+ throw std::runtime_error(\r
+ std::string( "Could not open \"" ) +\r
+ folder +\r
+ std::string( "\" directory." )\r
+ );\r
return;\r
}else{\r
// close, we'll process it next\r