From 04f71516841ff8108c9d5d9d7b8ab2bfa6952f31 Mon Sep 17 00:00:00 2001 From: Richard Kimberly Heck Date: Wed, 25 Apr 2018 11:52:21 -0400 Subject: [PATCH] Improve error message. --- src/Buffer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Buffer.cpp b/src/Buffer.cpp index 7569a4ec12..ee27f8f69d 100644 --- a/src/Buffer.cpp +++ b/src/Buffer.cpp @@ -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; -- 2.39.5