Permalink
Browse files

Made default behavior for an unknown EC2 error is to raise the error …

…anyway instead of raising an internal development error which may confuse the user

Signed-off-by: Glenn Rempe <glenn@rempe.us>
  • Loading branch information...
skwp authored and grempe committed Feb 24, 2009
1 parent 03788c4 commit d294e38798692965523decd018ac834deb4e5a50
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/EC2.rb
View
@@ -260,7 +260,7 @@ def ec2_error?(response)
if EC2.const_defined?(error_code)
raise EC2.const_get(error_code), error_message
else
- raise Error, "This is an undefined error code which needs to be added to exceptions.rb : error_code => #{error_code} : error_message => #{error_message}"
+ raise EC2::Error, error_message
end
end

0 comments on commit d294e38

Please sign in to comment.