summaryrefslogtreecommitdiff
path: root/app/services/files
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-03-01 14:29:33 -0600
committerDouwe Maan <douwe@selenight.nl>2017-03-01 14:29:33 -0600
commit8ca9bf1d3b9c4afc81abeeecee2a97167547809c (patch)
tree771f49b2cd754452aa90be4d05f0eca3a445632e /app/services/files
parent80543e0abd65a575bcc43f2482279af3980f4acc (diff)
downloadgitlab-ce-8ca9bf1d3b9c4afc81abeeecee2a97167547809c.tar.gz
Fix variable name and change copy
Diffstat (limited to 'app/services/files')
-rw-r--r--app/services/files/base_service.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/files/base_service.rb b/app/services/files/base_service.rb
index 3480cb70f67..c8a60422bf4 100644
--- a/app/services/files/base_service.rb
+++ b/app/services/files/base_service.rb
@@ -63,7 +63,7 @@ module Files
end
if !project.empty_repo? && different_branch? && repository.branch_exists?(@branch_name)
- raise ValidationError, 'Branch with such name already exists. You need to switch to this branch in order to make changes'
+ raise ValidationError, "A branch called #{@branch_name} already exists. Switch to that branch in order to make changes"
end
end