]> git.lyx.org Git - features.git/blobdiff - src/graphics/GraphicsConverter.C
change "support/std_sstream.h" to <sstream>
[features.git] / src / graphics / GraphicsConverter.C
index 0f54fb57de45690e770326fe6517e19dd7d24f75..4e1a754f8d8b5f32a8b14b3e209c00f01470fb28 100644 (file)
@@ -24,7 +24,7 @@
 
 #include <boost/bind.hpp>
 
-#include "support/std_sstream.h"
+#include <sstream>
 #include <fstream>
 
 namespace support = lyx::support;
@@ -187,8 +187,13 @@ Converter::Impl::Impl(string const & from_file,   string const & to_file_base,
                        tostr(counter++) + ".sh";
 
                std::ofstream fs(script_file_.c_str());
-               if (!fs.good())
+               if (!fs.good()) {
+                       lyxerr << "Unable to write the conversion script to \""
+                              << script_file_ << '\n'
+                              << "Please check your directory permissions."
+                              << std::endl;
                        return;
+               }
 
                fs << script.str();
                fs.close();