Improved the log output on theme loading errors.

This commit is contained in:
Leon Styhre 2022-12-22 17:16:16 +01:00
parent 8b33fceb8a
commit 7500f81f82

View file

@ -1357,7 +1357,8 @@ void SystemData::loadTheme()
mTheme->loadFile(sysData, path, isCustomCollection());
}
catch (ThemeException& e) {
LOG(LogError) << e.what();
LOG(LogError) << e.what() << " (system \"" << mName << "\", theme \"" << mThemeFolder
<< "\")";
mTheme = std::make_shared<ThemeData>(); // Reset to empty.
}
}