We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00955e0 commit 2289f4dCopy full SHA for 2289f4d
coderd/database/dbauthz/dbauthz.go
@@ -43,7 +43,7 @@ func (NotAuthorizedError) Unwrap() error {
43
func logNotAuthorizedError(ctx context.Context, logger slog.Logger, err error) error {
44
// Only log the errors if it is an UnauthorizedError error.
45
internalError := new(rbac.UnauthorizedError)
46
- if err != nil && xerrors.As(err, internalError) {
+ if err != nil && xerrors.As(err, &internalError) {
47
logger.Debug(ctx, "unauthorized",
48
slog.F("internal", internalError.Internal()),
49
slog.F("input", internalError.Input()),
0 commit comments