Skip to content

Commit 91edc2e

Browse files
committed
Improve error handling in GuacamoleClient authentication by including the base URL in the error message when the auth request fails.
1 parent a2370ca commit 91edc2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

request/guacamole.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (c *GuacamoleClient) Authenticate(ctx context.Context, username, password s
5959

6060
resp, err := c.client.Do(req)
6161
if err != nil {
62-
return fmt.Errorf("failed to send auth request: %w", err)
62+
return fmt.Errorf("failed to send auth request to %s: %w", c.baseURL, err)
6363
}
6464
//goland:noinspection GoUnhandledErrorResult
6565
defer resp.Body.Close()

0 commit comments

Comments
 (0)