# HG changeset patch # User Mads Kiilerich # Date 2013-06-12 10:23:20 # Node ID b622e6849b6761fb12f6ef2f4b592726f7db6b58 # Parent 7e897077bb402cc11249a28ea26faabc4ce9e9f1 pull requests: give slightly more useful error messages on failing form validation diff --git a/rhodecode/controllers/pullrequests.py b/rhodecode/controllers/pullrequests.py --- a/rhodecode/controllers/pullrequests.py +++ b/rhodecode/controllers/pullrequests.py @@ -322,10 +322,10 @@ class PullrequestsController(BaseRepoCon elif errors.error_dict.get('pullrequest_title'): msg = _('Pull request requires a title with min. 3 chars') else: - msg = _('Error creating pull request') + msg = _('Error creating pull request: %s') % errors.msg h.flash(msg, 'error') - return redirect(url('pullrequest_home', repo_name=repo_name)) + return redirect(url('pullrequest_home', repo_name=repo_name)) ## would rather just go back to form ... org_repo = _form['org_repo'] org_ref = _form['org_ref'] # will end with merge_rev but have symbolic name