Skip to content

Commit

Permalink
Show error reason when creating temp file
Browse files Browse the repository at this point in the history
Closes #140
  • Loading branch information
JonMagon committed May 26, 2024
1 parent ffe2bba commit d0b63f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/helper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ QVariantMap Helper::prepareBenchmarkFile(const QString &benchmarkPath, int fileS
m_benchmarkFile.setFileTemplate(QStringLiteral("%1/%2").arg(benchmarkPath).arg("kdiskmark-XXXXXX.tmp"));

if (!m_benchmarkFile.open()) {
return {{"success", false}, {"error", "An error occurred while creating the benchmark file."}};
return {{"success", false}, {"error", QString("An error occurred while creating the benchmark file: %1").arg(m_benchmarkFile.errorString())}};
}

m_process = new QProcess();
Expand Down

0 comments on commit d0b63f4

Please sign in to comment.