From 5963cb76cdbdf43052dbe594d5f008a9215fb2a1 Mon Sep 17 00:00:00 2001 From: Kaushik Sirineni Date: Wed, 1 Feb 2017 14:44:49 -0500 Subject: [PATCH] Raise MissingCredentials error in task poller --- aws-flow/lib/aws/decider/task_poller.rb | 3 +++ 1 file changed, 3 insertions(+) diff --git a/aws-flow/lib/aws/decider/task_poller.rb b/aws-flow/lib/aws/decider/task_poller.rb index d14eb0e..0ef5860 100644 --- a/aws-flow/lib/aws/decider/task_poller.rb +++ b/aws-flow/lib/aws/decider/task_poller.rb @@ -96,6 +96,9 @@ def poll_and_process_single_task @logger.info Utilities.workflow_task_to_debug_string("Finished executing task", task, @task_list) rescue AWS::SimpleWorkflow::Errors::UnknownResourceFault => e @logger.error "Error in the poller, #{e.inspect}" + rescue AWS::Errors::MissingCredentialsError => e + @logger.error "Error in the poller, #{e.inspect}" + raise e rescue Exception => e @logger.error "Error in the poller, #{e.inspect}" end