Commit 915665a4 authored by Kirstie Cook's avatar Kirstie Cook

Revert "Make strings look consistent"

This reverts commit 1d942a7be378b4f449b8f4efa7d0fd3d1a5f05bb.
parent 5a1f379b
......@@ -21,14 +21,14 @@ module Metrics
private
def check_push_authorized(result)
return error("You are not allowed to push into this branch. Create another branch or open a merge request.", :forbidden) unless push_authorized?
return error(_(%q(You are not allowed to push into this branch. Create another branch or open a merge request.)), :forbidden) unless push_authorized?
success(result)
end
def check_branch_name(result)
return error("There was an error updating the dashboard, branch name is invalid.", :bad_request) unless valid_branch_name?
return error("There was an error updating the dashboard, branch named: #{branch} already exists.", :bad_request) unless new_or_default_branch?
return error(_(%q(There was an error updating the dashboard, branch name is invalid.)), :bad_request) unless valid_branch_name?
return error(_('There was an error updating the dashboard, branch named: %{branch} already exists.') % { branch: params[:branch] }, :bad_request) unless new_or_default_branch?
success(result)
end
......
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