From a8c1161d7b3b36c9cc5cdc2e990d0b7abf9d6363 Mon Sep 17 00:00:00 2001 From: Guillaume Munch Date: Tue, 10 Nov 2015 07:59:24 +0000 Subject: [PATCH] Move tmpdir error message to stderr http://thread.gmane.org/gmane.editors.lyx.general/85638/focus=157802 --- src/Buffer.cpp | 3 +-- src/LyX.cpp | 6 ++---- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index cfc442c203..18568c7543 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 a1fdac9140..d81c90f6ff 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()))); } } } -- 2.39.2