From b50c85dc0fb24b69255feaed91183cb5fde578a0 Mon Sep 17 00:00:00 2001 From: luke Date: Mon, 11 Jun 2007 17:33:34 +0000 Subject: Fixing error when commands fail -- the error code is now printed, instead of the inspection of it git-svn-id: https://reductivelabs.com/svn/puppet/trunk@2557 980ebf18-57e1-0310-9a29-db15c13687c0 --- lib/puppet/util.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/puppet/util.rb b/lib/puppet/util.rb index 995745f6b..7735bb2ec 100644 --- a/lib/puppet/util.rb +++ b/lib/puppet/util.rb @@ -361,7 +361,7 @@ module Util if arguments[:failonfail] unless child_status == 0 - raise ExecutionFailure, "Execution of '%s' returned %s: %s" % [str, child_status.inspect, output] + raise ExecutionFailure, "Execution of '%s' returned %s: %s" % [str, child_status, output] end end -- cgit