model went away should be a fog error

This commit is contained in:
geemus 2010-09-16 15:41:19 -07:00
parent 22af45ed06
commit 1e3a676178
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ module Fog
def wait_for(timeout=600, interval=1, &block) def wait_for(timeout=600, interval=1, &block)
reload reload
Fog.wait_for(timeout, interval) do Fog.wait_for(timeout, interval) do
reload or raise StandardError.new("Reload failed, #{self.class} #{self.identity} went away.") reload or raise Fog::Errors::Error.new("Reload failed, #{self.class} #{self.identity} went away.")
instance_eval(&block) instance_eval(&block)
end end
end end