]> 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:05:25 +0000 (12:05 -0400)
src/Buffer.cpp

index 7569a4ec128d5404b56f656f7137d4c778508388..ee27f8f69d8af43213d6a888e7f8348227cc333b 100644 (file)
@@ -4363,7 +4363,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;