##// END OF EJS Templates
pull requests: give slightly more useful error messages on failing form validation
Mads Kiilerich -
r4080:b622e684 default
parent child Browse files
Show More
@@ -322,10 +322,10 b' class PullrequestsController(BaseRepoCon'
322 elif errors.error_dict.get('pullrequest_title'):
322 elif errors.error_dict.get('pullrequest_title'):
323 msg = _('Pull request requires a title with min. 3 chars')
323 msg = _('Pull request requires a title with min. 3 chars')
324 else:
324 else:
325 msg = _('Error creating pull request')
325 msg = _('Error creating pull request: %s') % errors.msg
326
326
327 h.flash(msg, 'error')
327 h.flash(msg, 'error')
328 return redirect(url('pullrequest_home', repo_name=repo_name))
328 return redirect(url('pullrequest_home', repo_name=repo_name)) ## would rather just go back to form ...
329
329
330 org_repo = _form['org_repo']
330 org_repo = _form['org_repo']
331 org_ref = _form['org_ref'] # will end with merge_rev but have symbolic name
331 org_ref = _form['org_ref'] # will end with merge_rev but have symbolic name
General Comments 0
You need to be logged in to leave comments. Login now