Skip to content

Commit

Permalink
cmd/faucet: more verbose message about private posts (ethereum#25129)
Browse files Browse the repository at this point in the history
* cmd/faucet: Add error message for private posts

Fixes ethereum#22631

* grammar
  • Loading branch information
Zachinquarantine authored and cp-wjhan committed Jun 26, 2023
1 parent fdd572d commit f18db90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/faucet/faucet.go
Original file line number Diff line number Diff line change
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 that 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 f18db90

Please sign in to comment.