Skip to content

Commit 8a16947

Browse files
committed
authz_test.go: log internal error
1 parent 35574ad commit 8a16947

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

coderd/rbac/authz_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -604,7 +604,8 @@ func testAuthorize(t *testing.T, name string, subject subject, sets ...[]authTes
604604
var uerr *rbac.UnauthorizedError
605605
xerrors.As(err, &uerr)
606606
d, _ := json.Marshal(uerr.Input())
607-
t.Log(string(d))
607+
t.Logf("input: %s", string(d))
608+
t.Logf("internal error: %+v", uerr.Internal().Error())
608609
}
609610
require.NoError(t, err, "expected no error for testcase action %s", a)
610611
continue

0 commit comments

Comments
 (0)