diff --git a/src/support/FileName.cpp b/src/support/FileName.cpp index 0a495dbfd4..5e0caafb6f 100644 --- a/src/support/FileName.cpp +++ b/src/support/FileName.cpp @@ -166,11 +166,12 @@ void FileName::erase() bool FileName::copyTo(FileName const & name) const { + LYXERR(Debug::FILES, "Copying " << name); QFile::remove(name.d->fi.absoluteFilePath()); bool success = QFile::copy(d->fi.absoluteFilePath(), name.d->fi.absoluteFilePath()); if (!success) - lyxerr << "FileName::copyTo(): Could not copy file " - << *this << " to " << name << endl; + LYXERR0("FileName::copyTo(): Could not copy file " + << *this << " to " << name); return success; }