diff --git a/lib/fog/aws/requests/iam/list_access_keys.rb b/lib/fog/aws/requests/iam/list_access_keys.rb index e1872cf75..6a705de5a 100644 --- a/lib/fog/aws/requests/iam/list_access_keys.rb +++ b/lib/fog/aws/requests/iam/list_access_keys.rb @@ -52,7 +52,7 @@ module Fog response.status = 200 end else - Fog::AWS::IAM::NotFound.new("The user with name #{user} cannot be found.") + raise Fog::AWS::IAM::NotFound.new("The user with name #{user} cannot be found.") end end end