Skip to content

Commit

Permalink
wip: return whatever error we're getting
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbunni committed Dec 4, 2024
1 parent dc83032 commit 8b4745c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,9 @@ func sourceFromArg(arg string) (*source, error) {
var dnsErr *net.DNSError
var opErr *net.OpError
src, err := readmeURL(arg)
if err != nil {
return src, err
}
if src != nil && err == nil {
// if there's an error, try next methods...
return src, nil
Expand Down

0 comments on commit 8b4745c

Please sign in to comment.