Skip to content

Commit e44b939

Browse files
committed
Improve error message
1 parent 791edc2 commit e44b939

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/brokers/broker.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ func (b Broker) IsAuthenticated(ctx context.Context, sessionID, authenticationDa
149149

150150
// Validate access authentication.
151151
if !slices.Contains(auth.Replies, access) {
152-
return "", "", fmt.Errorf("invalid access authentication key: %v", access)
152+
return "", "", fmt.Errorf("invalid authentication reply: %v", access)
153153
}
154154

155155
if data == "" {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
FIRST CALL:
22
access:
33
data:
4-
err: invalid access authentication key: invalid
4+
err: invalid authentication reply: invalid

0 commit comments

Comments
 (0)