Add more info for raise cases

This commit is contained in:
Vladimir Sharshov 2011-10-28 03:39:37 +04:00
parent 812711b144
commit 1cb728c067
1 changed files with 3 additions and 3 deletions

View File

@ -102,7 +102,7 @@ class Platform < ActiveRecord::Base
if result == BuildServer::SUCCESS
return true
else
raise "Failed to create platform #{name}. Path: #{build_path(unixname)}"
raise "Failed to create platform #{name} with code #{result}. Path: #{build_path(unixname)}"
end
end
@ -112,7 +112,7 @@ class Platform < ActiveRecord::Base
if result == BuildServer::SUCCESS
return true
else
raise "Failed to delete platform #{unixname}."
raise "Failed to delete platform #{unixname} with code #{result}."
end
end
@ -122,7 +122,7 @@ class Platform < ActiveRecord::Base
if result == BuildServer::SUCCESS
return true
else
raise "Failed to clone platform #{name}. Path: #{build_path(unixname)} to platform #{new_unixname}"
raise "Failed to clone platform #{name} with code #{result}. Path: #{build_path(unixname)} to platform #{new_unixname}"
end
end