summaryrefslogtreecommitdiff
path: root/app/services/files
diff options
context:
space:
mode:
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