logs: Add file path to asset ERR log (#7336)

This commit is contained in:
davc0n 2024-08-14 19:35:07 +02:00 committed by GitHub
parent 3b4aabe04c
commit 197f880790
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2690,7 +2690,7 @@ void CHyprOpenGLImpl::createBGTextureForMonitor(CMonitor* pMonitor) {
// check if wallpapers exist
std::error_code err;
if (!std::filesystem::exists(texPath, err)) {
Debug::log(ERR, "createBGTextureForMonitor: failed, file doesn't exist or access denied, ec: {}", err.message());
Debug::log(ERR, "createBGTextureForMonitor: failed, file \"{}\" doesn't exist or access denied, ec: {}", texPath, err.message());
return; // the texture will be empty, oh well. We'll clear with a solid color anyways.
}