]> git.lyx.org Git - features.git/commitdiff
Improve error message.
authorRichard Kimberly Heck <rikiheck@lyx.org>
Wed, 25 Apr 2018 15:52:21 +0000 (11:52 -0400)
committerRichard Kimberly Heck <rikiheck@lyx.org>
Wed, 25 Apr 2018 16:06:07 +0000 (12:06 -0400)
(cherry picked from commit 04f71516841ff8108c9d5d9d7b8ab2bfa6952f31)

src/Buffer.cpp
status.23x

index d3e7e6b4658a9b0302845073bc1c7d6a934ded78..42fc7bb100ea0b0b693a720a2818caadf4f92ff0 100644 (file)
@@ -4356,7 +4356,9 @@ Buffer::ExportStatus Buffer::doExport(string const & target, bool put_in_tempdir
        } else if (!lyxrc.tex_allows_spaces
                   && contains(filePath(), ' ')) {
                Alert::error(_("File name error"),
-                          _("The directory path to the document cannot contain spaces."));
+                       bformat(_("The directory path to the document\n%1$s\n"
+                           "contains spaces, but your TeX installation does "
+                           "not allow them."), from_ascii(filePath())));
                return ExportTexPathHasSpaces;
        } else {
                runparams.nice = false;
index af3b8517e6605088dc33e3fcef2a579a6337fd5e..666a80648b38464f2ba6f606356ebcf8bfa200cf 100644 (file)
@@ -222,6 +222,8 @@ What's new
 - Fix crash when canceling entry of macro name in a mathed subscript
   (bug 11125).
 
+- Improve error message when document path contains spaces.
+
 
 * INTERNALS