mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: add template RBAC/groups (#4235)
This commit is contained in:
@@ -51,3 +51,8 @@ func IsConnectionErr(err error) bool {
|
||||
|
||||
return xerrors.As(err, &dnsErr) || xerrors.As(err, &opErr)
|
||||
}
|
||||
|
||||
func AsError(err error) (*Error, bool) {
|
||||
var e *Error
|
||||
return e, xerrors.As(err, &e)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user