MCPcopy Index your code
hub / github.com/coder/coder / Error

Method Error

coderd/database/dbauthz/dbauthz.go:47–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45var _ httpapiconstraints.IsUnauthorizedError = (*NotAuthorizedError)(nil)
46
47func (e NotAuthorizedError) Error() string {
48 var detail string
49 if e.Err != nil {
50 detail = ": " + e.Err.Error()
51 }
52 return "unauthorized" + detail
53}
54
55// IsUnauthorized implements the IsUnauthorized interface.
56func (NotAuthorizedError) IsUnauthorized() bool {

Calls

no outgoing calls