MCPcopy Create free account
hub / github.com/UiPath/uipathcli / writeErrorPage

Method writeErrorPage

auth/oauth_authenticator.go:296–299  ·  view source on GitHub ↗
(w http.ResponseWriter, err error)

Source from the content-addressed store, hash-verified

294}
295
296func (a OAuthAuthenticator) writeErrorPage(w http.ResponseWriter, err error) {
297 w.Header().Set("Content-Type", "text/html")
298 _, _ = w.Write([]byte(err.Error()))
299}
300
301func (a OAuthAuthenticator) writeHtmlPage(w http.ResponseWriter, html string) {
302 w.Header().Set("Content-Type", "text/html")

Callers 1

loginMethod · 0.95

Calls 4

HeaderMethod · 0.80
ErrorMethod · 0.80
SetMethod · 0.65
WriteMethod · 0.65

Tested by

no test coverage detected