Skip to content

Commit

Permalink
cmd/faucet: Add error message for private posts
Browse files Browse the repository at this point in the history
  • Loading branch information
Zachinquarantine committed Jun 19, 2022
1 parent 01e5e9c commit a781849
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/faucet/faucet.go
Expand Up @@ -860,7 +860,7 @@ func authFacebook(url string) (string, string, common.Address, error) {
address := common.HexToAddress(string(regexp.MustCompile("0x[0-9a-fA-F]{40}").Find(body)))
if address == (common.Address{}) {
//lint:ignore ST1005 This error is to be displayed in the browser
return "", "", common.Address{}, errors.New("No Ethereum address found to fund")
return "", "", common.Address{}, errors.New("No Ethereum address found to fund. Please check the post URL and verify it can be viewed publicly.")
}
var avatar string
if parts = regexp.MustCompile(`src="([^"]+fbcdn\.net[^"]+)"`).FindStringSubmatch(string(body)); len(parts) == 2 {
Expand Down

0 comments on commit a781849

Please sign in to comment.