Commit 9e4aade7 authored by Michal Čihař's avatar Michal Čihař

Emmit error on error

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent 08076b09
......@@ -352,6 +352,10 @@ def handle_merge(translation, request, next_unit_url):
mergeform = MergeForm(translation, request.GET)
if not mergeform.is_valid():
messages.error(
request,
_('Invalid merge request!')
)
return
unit = mergeform.cleaned_data['unit']
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment