Skip to content

Commit

Permalink
Update error messages when loading fails
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisroberts committed Apr 9, 2015
1 parent 35f658f commit 262bc3f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/miasma.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ def self.api(args={})
raise Error.new "Failed to locate #{args[:type]} API for #{args[:provider].inspect}"
end
else
raise Error.new "Failed to locate request API type #{args[:type].inspect}"
raise Error.new "Failed to locate requested API type #{args[:type].inspect} for #{args[:provider].inspect}"
end
rescue NameError
raise Error.new "Failed to locate request API type #{args[:type].inspect}"
rescue NameError => e
raise Error.new "Failed to locate requested API type #{args[:type].inspect}"
end
end

Expand Down

0 comments on commit 262bc3f

Please sign in to comment.