Improve error when no url given

This commit is contained in:
Ash Berlin 2009-12-17 23:00:20 +00:00 committed by Max Howell
parent df3cca94e1
commit 5193d835a4

View File

@ -99,7 +99,7 @@ class Formula
@version='HEAD'
end
raise if @url.nil?
raise "No url provided for formula #{name}" if @url.nil?
@name=name
validate_variable :name