Skip to content

Commit

Permalink
[ENH] Give user better clue for wrong web.base.url.
Browse files Browse the repository at this point in the history
  • Loading branch information
NL66278 committed Mar 20, 2017
1 parent c2785e9 commit 220187c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions letsencrypt/models/letsencrypt.py
Expand Up @@ -91,9 +91,11 @@ def _ip_is_private(address):
return ip.iptype() == 'PRIVATE'

if domain in local_domains or _ip_is_private(domain):
raise UserError(
_("Let's encrypt doesn't work with private addresses "
"or local domains!"))
raise UserError(_(
"Let's encrypt doesn't work with private addresses "
"or local domains!\n"
"Check the web.base.url system parameter."
))

@api.model
def generate_csr(self, domain, ignore_altnames=False):
Expand Down

0 comments on commit 220187c

Please sign in to comment.