From 0c9b2f5d846ef1589572ff0e1c23fc268e6cda4e Mon Sep 17 00:00:00 2001 From: Vladimir Sharshov Date: Fri, 28 Oct 2011 04:26:53 +0400 Subject: [PATCH] Add more information in projects raise --- app/models/project.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/models/project.rb b/app/models/project.rb index b417e8372..14ab51918 100644 --- a/app/models/project.rb +++ b/app/models/project.rb @@ -73,7 +73,7 @@ class Project < ActiveRecord::Base if result == BuildServer::SUCCESS return true else - raise "Failed to add project #{name} to repo #{repo.name} of platform #{platf.name}." + raise "Failed to add project #{name} to repo #{repo.name} of platform #{platf.name} with code #{result}." end end @@ -86,7 +86,7 @@ class Project < ActiveRecord::Base if result == BuildServer::SUCCESS return true else - raise "Failed to create project #{name} (repo #{repository.name}) inside platform #{repository.platform.name}." + raise "Failed to create project #{name} (repo #{repository.name}) inside platform #{repository.platform.name} with code #{result}." end end @@ -138,7 +138,7 @@ class Project < ActiveRecord::Base if result == BuildServer::SUCCESS return true else - raise "Failed to create project #{name} (repo main) inside platform #{owner.uname}_personal." + raise "Failed to create project #{name} (repo main) inside platform #{owner.uname}_personal with code #{result}." end end @@ -147,7 +147,7 @@ class Project < ActiveRecord::Base if result == BuildServer::SUCCESS return true else - raise "Failed to delete repository #{name} (repo main) inside platform #{owner.uname}_personal." + raise "Failed to delete repository #{name} (repo main) inside platform #{owner.uname}_personal with code #{result}." end end end