Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1f0e33a

Browse files
committed
chore: improve error message for failed workspace and prebuilt authorization
1 parent471d3e8 commit1f0e33a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎coderd/database/dbauthz/dbauthz.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,10 +169,10 @@ func (q *querier) authorizePrebuiltWorkspace(ctx context.Context, action policy.
169169
ifprebuiltErr=q.authorizeContext(ctx,action,workspace.AsPrebuild());prebuiltErr==nil {
170170
returnnil
171171
}
172-
returnxerrors.Errorf("authorize contextas prebuild: %w",errors.Join(workspaceErr,prebuiltErr))
172+
returnxerrors.Errorf("authorize contextfailed for workspace (%v) and prebuilt (%w)",workspaceErr,prebuiltErr)
173173
}
174174

175-
returnxerrors.Errorf("authorize context: %w",errors.Join(workspaceErr))
175+
returnxerrors.Errorf("authorize context: %w",workspaceErr)
176176
}
177177

178178
typeauthContextKeystruct{}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp