Skip to content

Commit

Permalink
fix: improve error message for non-existant pkgs
Browse files Browse the repository at this point in the history
  • Loading branch information
jdkato committed Aug 15, 2023
1 parent 9319899 commit e58d135
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cmd/vale/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,8 @@ func fetch(src, dst string) error {
resp, err := http.Get(src)
if err != nil {
return err
} else if resp.StatusCode != 200 {
return fmt.Errorf("Could not fetch '%s' (status code '%d').", src, resp.StatusCode)
}

// Create a temp file to represent the archive locally:
Expand Down

0 comments on commit e58d135

Please sign in to comment.