Skip to content

Commit

Permalink
fix: verify the API response for any errors (#65)
Browse files Browse the repository at this point in the history
  • Loading branch information
razonyang committed Jun 4, 2024
1 parent 1cf662e commit 5ffb820
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions layouts/partials/hb/modules/revision/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
{{- $opts = merge $opts (dict "headers" (dict "Authorization" (printf "Bearer %s" .))) }}
{{- end }}
{{- with and $showContributors (resources.GetRemote $url $opts) }}
{{- with .Err }}
{{- errorf "[github.com/hbstack/revision] failed to fetch %s: %s" $url . }}
{{- end }}
{{- range $weight, $commit := transform.Unmarshal . }}
{{- if not .author }}
{{- continue }}
Expand Down

0 comments on commit 5ffb820

Please sign in to comment.