| |
@@ -501,8 +501,9 @@
|
| |
raise Forbidden("The submitted scmurl %s is not allowed" % url)
|
| |
|
| |
if not get_scm_url_re().match(url):
|
| |
- log.error("The submitted scmurl %r is not valid" % url)
|
| |
- raise ValidationError("The submitted scmurl %s is not valid" % url)
|
| |
+ msg = "Expected format is '%s?[module-path]#[revision]'" % url
|
| |
+ log.error("The submitted scmurl %r is not valid. %s" % (url, msg))
|
| |
+ raise ValidationError("The submitted scmurl %s is not valid. %s" % (url, msg))
|
| |
|
| |
if not skip_branch and "branch" not in self.data:
|
| |
log.error("Missing branch")
|
| |
Fixes: https://pagure.io/fm-orchestrator/issue/1098