1 parent 9876743 commit 8e00993Copy full SHA for 8e00993
1 file changed
chef/lib/chef/provider/erl_call.rb
@@ -76,10 +76,12 @@ def action_run
76
stderr.each_line { |line| stderr_output << line }
77
stderr.close
78
79
+ # fail if stderr contains anything
80
if stderr_output.length > 0
81
raise Chef::Exceptions::ErlCall, stderr_output
82
end
83
84
+ # fail if the first 4 characters aren't "{ok,"
85
unless stdout_output[0..3].include?('{ok,')
86
raise Chef::Exceptions::ErlCall, stdout_output
87
0 commit comments