Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mmetc committed Feb 28, 2024
1 parent 24a1546 commit 80fa574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/apiclient/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ func NewClient(config *Config) (*ApiClient, error) {
}

if !strings.HasSuffix(baseUrl.Path, "/") && baseUrl.Host != "unix" {
return nil, fmt.Errorf("BaseURL must have a trailing slash, but %q does not", baseUrl)
return nil, fmt.Errorf("BaseURL must have a trailing slash, but %q does not (host: %s, path: %s)", baseUrl, baseUrl.Host, baseUrl.Path)
}

c := &ApiClient{client: t.Client(), BaseURL: baseUrl, UserAgent: config.UserAgent, URLPrefix: config.VersionPrefix, PapiURL: config.PapiURL}
Expand Down

0 comments on commit 80fa574

Please sign in to comment.