Add comment about loading error.html

This commit is contained in:
Greg Neagle
2025-08-13 13:15:34 -07:00
parent b04d50271e
commit b429567f5d
@@ -931,6 +931,7 @@ class MainWindowController: NSWindowController {
guard requestComponents.starts(with: baseComponents) else {
msc_debug_log("Attempt to access file outside htmlDir: \(url_fragment)")
// since error.html doesn't exist, this ends up triggering buildItemNotFoundPage()
let errorURL = baseURL.appendingPathComponent("error.html")
webView.load(URLRequest(url: errorURL))
return