Skip to content

Commit

Permalink
fix: Bad fn call
Browse files Browse the repository at this point in the history
  • Loading branch information
ditsuke committed Jun 30, 2022
1 parent 8112500 commit 0c78719
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ func authorizeCtx(ctx context.Context) (context.Context, error) {
user, pass := string(credentials[:index]), string(credentials[index+1:])
client, err := amizone.NewClient(amizone.Credentials{Username: user, Password: pass}, nil)
if err != nil {
return ctx, status.Errorf(codes.Unauthenticated, "amizone: ", err.Error())
return ctx, status.Error(codes.Unauthenticated, "amizone: "+err.Error())
}
return context.WithValue(ctx, ContextAmizoneClientKey, client), nil
}

0 comments on commit 0c78719

Please sign in to comment.