Give a debug log message if creating cache directory fails

Things will almost certainly fail to work in this case, as CEF won't be
able to create it neither, but still continue just in case they don't.
This commit is contained in:
Vadim Zeitlin 2024-01-17 00:30:58 +01:00
parent d4327e81d1
commit 2d127ba229

View file

@ -978,7 +978,12 @@ bool wxWebViewChromium::InitCEF(const wxWebViewConfiguration& config)
);
cefDataFolder.AppendDir("CEF");
}
cefDataFolder.Mkdir(wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL);
if ( !cefDataFolder.Mkdir(wxS_DIR_DEFAULT, wxPATH_MKDIR_FULL) )
{
wxLogTrace(TRACE_CEF, "Failed to create CEF directory \"%s\"",
cefDataFolder.GetFullPath());
}
CefSettings settings;