Feature: Protonvpn filter servers with FREE_ONLY

This commit is contained in:
Quentin McGaw
2021-05-23 21:51:12 +00:00
parent bc7246f882
commit 0c4f01a892
6 changed files with 25 additions and 2 deletions

View File

@@ -113,6 +113,10 @@ func NoServerFoundError(selection configuration.ServerSelection) (err error) {
messageParts = append(messageParts, part)
}
if selection.FreeOnly {
messageParts = append(messageParts, "free tier only")
}
message := "for " + strings.Join(messageParts, "; ")
return fmt.Errorf("%w: %s", ErrNoServerFound, message)