Move tmpdir error message to stderr

http://thread.gmane.org/gmane.editors.lyx.general/85638/focus=157802
This commit is contained in:
Guillaume Munch 2015-11-10 07:59:24 +00:00
parent 7a507c3745
commit a8c1161d7b
2 changed files with 3 additions and 6 deletions

View File

@ -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();

View File

@ -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())));
}
}
}