Skip to content

Commit acab321

Browse files
committed
Removing extra space from the end of gitlab_update error messages
1 parent ba2248f commit acab321

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/gitlab_update.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ def exec
3434
update_redis
3535
exit 0
3636
else
37-
puts "GitLab: You are not allowed to access #{@branch_name}! "
37+
puts "GitLab: You are not allowed to access #{@branch_name}!"
3838
exit 1
3939
end
4040
else
@@ -57,7 +57,7 @@ def update_redis
5757
queue = "#{config.redis_namespace}:queue:post_receive"
5858
msg = JSON.dump({'class' => 'PostReceive', 'args' => [@repo_path, @oldrev, @newrev, @refname, @key_id]})
5959
unless system(*config.redis_command, 'rpush', queue, msg, err: '/dev/null', out: '/dev/null')
60-
puts "GitLab: An unexpected error occurred (redis-cli returned #{$?.exitstatus}). "
60+
puts "GitLab: An unexpected error occurred (redis-cli returned #{$?.exitstatus})."
6161
exit 1
6262
end
6363
end

0 commit comments

Comments
 (0)