url-validator: make it more explicit credentials could be a case for repo import validator to fail
This commit is contained in:
parent
985d3eede5
commit
e5a4524403
2 changed files with 2 additions and 2 deletions
|
|
@ -139,7 +139,7 @@ class CloneUriValidator(object):
|
|||
raise colander.Invalid(node, e.message)
|
||||
except Exception:
|
||||
log.exception('Url validation failed')
|
||||
msg = _(u'invalid clone url for {repo_type} repository').format(
|
||||
msg = _(u'invalid clone url or credentials for {repo_type} repository').format(
|
||||
repo_type=self.repo_type)
|
||||
raise colander.Invalid(node, msg)
|
||||
|
||||
|
|
|
|||
|
|
@ -624,7 +624,7 @@ def ValidCloneUri(localizer):
|
|||
|
||||
class _validator(formencode.validators.FancyValidator):
|
||||
messages = {
|
||||
'clone_uri': _(u'invalid clone url for %(rtype)s repository'),
|
||||
'clone_uri': _(u'invalid clone url or credentials for %(rtype)s repository'),
|
||||
'invalid_clone_uri': _(
|
||||
u'Invalid clone url, provide a valid clone '
|
||||
u'url starting with one of %(allowed_prefixes)s')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue