Skip to content

Commit 8e00993

Browse files
joewilliamsdanielsdeleo
authored andcommitted
some comments
1 parent 9876743 commit 8e00993

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

chef/lib/chef/provider/erl_call.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,12 @@ def action_run
7676
stderr.each_line { |line| stderr_output << line }
7777
stderr.close
7878

79+
# fail if stderr contains anything
7980
if stderr_output.length > 0
8081
raise Chef::Exceptions::ErlCall, stderr_output
8182
end
8283

84+
# fail if the first 4 characters aren't "{ok,"
8385
unless stdout_output[0..3].include?('{ok,')
8486
raise Chef::Exceptions::ErlCall, stdout_output
8587
end

0 commit comments

Comments
 (0)