fix: log error if file open/commit fails

Signed-off-by: Octol1ttle <l1ttleofficial@outlook.com>
This commit is contained in:
Octol1ttle 2026-03-23 00:36:50 +05:00
parent 09823dbb4a
commit 838687fb2e
No known key found for this signature in database
GPG key ID: B77C34313AEE1FFF
23 changed files with 54 additions and 44 deletions

View file

@ -107,7 +107,7 @@ class VersionTest : public QObject {
QFile vector_file{ test_vector_dir.absoluteFilePath("test_vectors.txt") };
if (!vector_file.open(QFile::OpenModeFlag::ReadOnly)) {
qCritical() << "Failed to open file '" << vector_file.fileName() << "' for reading!";
qCritical() << "Failed to open file" << vector_file.fileName() << "for reading:" << vector_file.errorString();
return;
}