Skip to content

Commit

Permalink
[api] fix validation error message
Browse files Browse the repository at this point in the history
  • Loading branch information
coolo committed Dec 5, 2012
1 parent 83a49e0 commit 9e52b3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/models/repository.rb
Expand Up @@ -20,7 +20,7 @@ class Repository < ActiveRecord::Base
validate :validate_duplicates, :on => :create
def validate_duplicates
if Repository.where("db_project_id = ? AND name = ?", self.db_project_id, self.name).first
errors.add(:name, "Project already has project with name #{self.name}")
errors.add(:name, "Project already has repository with name #{self.name}")
end
end

Expand Down

0 comments on commit 9e52b3d

Please sign in to comment.