diff --git a/lib/cfn-nag/custom_rules/SPCMRule.rb b/lib/cfn-nag/custom_rules/SPCMRule.rb index 5717443c..28060a3e 100644 --- a/lib/cfn-nag/custom_rules/SPCMRule.rb +++ b/lib/cfn-nag/custom_rules/SPCMRule.rb @@ -26,7 +26,7 @@ def audit_impl(cfn_model) begin policy_documents = SPCM.new.metric_impl(cfn_model) rescue StandardError => catch_all_exception - puts "Experimental SPCM rule is failing. Please report #{catch_all_exception} with the violating template" + $stderr.puts "Experimental SPCM rule is failing. Please report #{catch_all_exception} with the violating template" policy_documents = { 'AWS::IAM::Policy' => {}, 'AWS::IAM::Role' => {}