diff --git a/ScreenPlayUtil/src/util.cpp b/ScreenPlayUtil/src/util.cpp index cd8948b3..7bbf6e6b 100644 --- a/ScreenPlayUtil/src/util.cpp +++ b/ScreenPlayUtil/src/util.cpp @@ -65,6 +65,7 @@ std::optional openJsonFileToString(const QString& path) QFile file; file.setFileName(path); if (!file.open(QIODevice::ReadOnly | QIODevice::Text)) { + qWarning() << "Unable to open file: " << path << file.errorString(); return std::nullopt; } QString fileContent = file.readAll();