gowut icon indicating copy to clipboard operation
gowut copied to clipboard

Add SetWindowNotFoundHandler similarly SetAppRootHandler in server

Open Garykom opened this issue 6 years ago • 1 comments

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.

Garykom avatar May 05 '19 05:05 Garykom

I see no problem adding this. Will do so.

icza avatar May 06 '19 13:05 icza