Commit 65ea03ae authored by Gabriel Mazetto's avatar Gabriel Mazetto

Merge branch 'mk/remove-extra-space' into 'master'

Remove extra space in API 403 Forbidden error message

See merge request gitlab-org/gitlab!50016
parents 47fc384d 0ed681bd
---
title: Remove extra space in API 403 Forbidden error message
merge_request: 50016
author:
type: changed
......@@ -372,7 +372,7 @@ module API
def forbidden!(reason = nil)
message = ['403 Forbidden']
message << " - #{reason}" if reason
message << "- #{reason}" if reason
render_api_error!(message.join(' '), 403)
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