From a78184998a029c86769e80feea30503fc236a3f6 Mon Sep 17 00:00:00 2001 From: Zachinquarantine Date: Sun, 19 Jun 2022 18:09:20 -0400 Subject: [PATCH 1/2] cmd/faucet: Add error message for private posts Fixes #22631 --- cmd/faucet/faucet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go index bcb837062f6f..527fa984f116 100644 --- a/cmd/faucet/faucet.go +++ b/cmd/faucet/faucet.go @@ -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 { From b53cfb843418eaece88dc071be9843e31648b452 Mon Sep 17 00:00:00 2001 From: Zachinquarantine Date: Sun, 19 Jun 2022 18:10:19 -0400 Subject: [PATCH 2/2] grammar --- cmd/faucet/faucet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/faucet/faucet.go b/cmd/faucet/faucet.go index 527fa984f116..d958ab972039 100644 --- a/cmd/faucet/faucet.go +++ b/cmd/faucet/faucet.go @@ -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. Please check the post URL and verify it can be viewed publicly.") + 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 {