summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryan McLellan <btm@opscode.com>2011-06-03 15:51:34 -0700
committerBryan McLellan <btm@opscode.com>2011-06-03 15:54:33 -0700
commit9d1c9acfb7e1eb01befa083ccdb0d46b874790bb (patch)
treeea323866fb7c63aa42dfaa4ec4f82da84b52c1eb
parente79ed828cc7120befa07a0be513a88d36eeef587 (diff)
downloadchef-9d1c9acfb7e1eb01befa083ccdb0d46b874790bb.tar.gz
do not lie about what exit code we expected
-rw-r--r--chef/lib/chef/shell_out.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/chef/lib/chef/shell_out.rb b/chef/lib/chef/shell_out.rb
index afc78cceae..7cb7bfc371 100644
--- a/chef/lib/chef/shell_out.rb
+++ b/chef/lib/chef/shell_out.rb
@@ -190,7 +190,7 @@ class Chef
# Chef::Exceptions::ShellCommandFailed::: via +invalid!+
def error!
unless Array(valid_exit_codes).include?(exitstatus)
- invalid!("Expected process to exit 0, but it exited with #{exitstatus}")
+ invalid!("Expected process to exit with #{valid_exit_codes.inspect}, but received '#{exitstatus}'")
end
end