Add better logging for file open and write errors

This commit is contained in:
Jonas Kvinge
2021-08-09 23:32:26 +02:00
parent 7d61d8e646
commit f1d3cadb3b
15 changed files with 120 additions and 41 deletions

View File

@@ -225,6 +225,9 @@ int main(int argc, char *argv[]) {
if (file.open(QIODevice::WriteOnly)) {
file.close();
}
else {
qLog(Error) << "Could not open settings file" << file.fileName() << "for writing:" << file.errorString();
}
}
// Set -rw-------