Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Display underlying error when verifying API key #135

Merged
merged 1 commit into from
Jan 7, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion common.go
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ func parseUnix(ts string) time.Time {
func buildURL(cfg *libhoney.Config, traceID string, ts int64) (string, error) {
teamName, err := libhoney.VerifyAPIKey(*cfg)
if err != nil {
return "", fmt.Errorf("unable to verify API key")
return "", fmt.Errorf("unable to verify API key: %w", err)
}
uiHost := strings.Replace(cfg.APIHost, "api", "ui", 1)
u, err := url.Parse(uiHost)
Expand Down