gowut
gowut copied to clipboard
Add SetWindowNotFoundHandler similarly SetAppRootHandler in server
In server.go in serveHTTP there is a code:
if win == nil {
// Invalid window name, render an error message with a link to the window list
w.Header().Set("Content-Type", "text/html; charset=utf-8")
w.WriteHeader(http.StatusNotFound)
NewWriter(w).Writess("<html><body>Window for name <b>'", winName, `'</b> not found. See the <a href="`, s.appPath, `">Window list</a>.</body></html>`)
return
}
Please make an opportunity to appoint the handler for formation of the page of a nonexistent window.
I see no problem adding this. Will do so.