Improve error message.

(cherry picked from commit 04f7151684)
This commit is contained in:
Richard Kimberly Heck 2018-04-25 11:52:21 -04:00
parent d0a11cb8e2
commit 13354c4a53
2 changed files with 5 additions and 1 deletions

View 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;

View 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