commit 13354c4a5357b3ce0350b1766de20a4dfa1248fb
Author: Richard Kimberly Heck <[email protected]>
Date:   Wed Apr 25 11:52:21 2018 -0400

    Improve error message.
    
    (cherry picked from commit 04f71516841ff8108c9d5d9d7b8ab2bfa6952f31)
---
 src/Buffer.cpp |    4 +++-
 status.23x     |    2 ++
 2 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/Buffer.cpp b/src/Buffer.cpp
index d3e7e6b..42fc7bb 100644
--- a/src/Buffer.cpp
+++ b/src/Buffer.cpp
@@ -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;
diff --git a/status.23x b/status.23x
index af3b851..666a806 100644
--- a/status.23x
+++ b/status.23x
@@ -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
 

Reply via email to