Skip to content

Commit

Permalink
Display underlying error when verifying API key (#135)
Browse files Browse the repository at this point in the history
  • Loading branch information
jhchabran authored Jan 7, 2022
1 parent 3c7d2d7 commit ed862a0
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit ed862a0

Please sign in to comment.