Verified Commit 9f3c426d authored by Andre Heinecke's avatar Andre Heinecke
Browse files

Correct error when tmpfile cannot be found

For error analysis it is more useful to print the
tmpFileName that can't be found instead of the filename.
parent 60da908d
Pipeline #48848 passed with stage
in 17 minutes and 38 seconds
......@@ -581,7 +581,7 @@ void FileOutput::doFinalize()
const QFileInfo fi2(tmpFileName);
if (!fi2.exists()) {
throw Exception(gpg_error(GPG_ERR_EIO),
QStringLiteral("Could not find temporary file \"%1\".").arg(m_fileName));
QStringLiteral("Could not find temporary file \"%1\".").arg(tmpFileName));
qCDebug(KLEOPATRA_LOG) << this << " renaming " << tmpFileName << "->" << m_fileName;
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment