Skip to content

Commit

Permalink
wip: got errors?
Browse files Browse the repository at this point in the history
  • Loading branch information
bashbunni committed Dec 5, 2024
1 parent 8406b99 commit 573b982
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,11 @@ func sourceFromArg(arg string) (*source, error) {
}

// var dnsErr *net.DNSError
// if src != nil && err == nil {
// // if there's an error, try next methods...
// return src, nil
// } else if errors.As(err, &dnsErr) {
if src != nil && err == nil {
// if there's an error, try next methods...
return src, nil
}
// else if errors.As(err, &dnsErr) {
// // fail if there's a network error.
// return src, err
// }
Expand Down

0 comments on commit 573b982

Please sign in to comment.