mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-27 06:19:36 +00:00
More sensible error messages.
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@25202 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
48cd43fd51
commit
af7b5b5e26
@ -850,8 +850,8 @@ bool LyX::init()
|
||||
if (package().temp_dir().empty()) {
|
||||
Alert::error(_("Could not create temporary directory"),
|
||||
bformat(_("Could not create a temporary directory in\n"
|
||||
"%1$s. Make sure that this\n"
|
||||
"path exists and is writable and try again."),
|
||||
"\"%1$s\"\n"
|
||||
"Make sure that this path exists and is writable and try again."),
|
||||
from_utf8(lyxrc.tempdir_path)));
|
||||
// createLyXTmpDir() tries sufficiently hard to create a
|
||||
// usable temp dir, so the probability to come here is
|
||||
|
@ -321,8 +321,8 @@ static FileName createTmpDir(FileName const & tempdir, string const & mask)
|
||||
LYXERR(Debug::FILES, "createTmpDir: tempdir=`" << tempdir << "'\n"
|
||||
<< "createTmpDir: mask=`" << mask << '\'');
|
||||
|
||||
FileName const tmpfl = FileName::tempName(tempdir.absFilename()
|
||||
+ "/" + mask);
|
||||
string const tmp_dir = tempdir.absFilename() + "/" + mask;
|
||||
FileName const tmpfl = FileName::tempName(tmp_dir);
|
||||
// FileName::tempName actually creates a file to make sure that it
|
||||
// stays unique. So we have to delete it before we can create
|
||||
// a dir with the same name. Note also that we are not thread
|
||||
@ -330,8 +330,8 @@ static FileName createTmpDir(FileName const & tempdir, string const & mask)
|
||||
tmpfl.removeFile();
|
||||
|
||||
if (tmpfl.empty() || !tmpfl.createDirectory(0700)) {
|
||||
lyxerr << "LyX could not create the temporary directory '"
|
||||
<< tmpfl << "'" << endl;
|
||||
LYXERR0("LyX could not create the temporary directory '" << tmp_dir
|
||||
<< "'");
|
||||
return FileName();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user