commit a8c1161d7b3b36c9cc5cdc2e990d0b7abf9d6363
Author: Guillaume Munch <[email protected]>
Date: Tue Nov 10 07:59:24 2015 +0000
Move tmpdir error message to stderr
http://thread.gmane.org/gmane.editors.lyx.general/85638/focus=157802
diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index cfc442c..18568c7 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -526,8 +526,7 @@ Buffer::~Buffer()
d->position_to_children.clear();
if (!d->temppath.destroyDirectory()) {
- Alert::warning(_("Could not remove temporary
directory"),
- bformat(_("Could not remove the temporary
directory %1$s"),
+ LYXERR0(bformat(_("Could not remove the temporary
directory %1$s"),
from_utf8(d->temppath.absFileName())));
}
removePreviews();
diff --git a/src/LyX.cpp b/src/LyX.cpp
index a1fdac9..d81c90f 100644
--- a/src/LyX.cpp
+++ b/src/LyX.cpp
@@ -404,10 +404,8 @@ void LyX::prepareExit()
LYXERR(Debug::INFO, "Deleting tmp dir "
<< package().temp_dir().absFileName());
if (!package().temp_dir().destroyDirectory()) {
- docstring const msg =
- bformat(_("Unable to remove the
temporary directory %1$s"),
-
from_utf8(package().temp_dir().absFileName()));
- Alert::warning(_("Unable to remove temporary
directory"), msg);
+ LYXERR0(bformat(_("Unable to remove the
temporary directory %1$s"),
+
from_utf8(package().temp_dir().absFileName())));
}
}
}