diff options
author | Travis Fields <travis@puppetlabs.com> | 2014-10-29 12:52:52 -0700 |
---|---|---|
committer | Travis Fields <travis@puppetlabs.com> | 2014-10-29 12:52:52 -0700 |
commit | 12f734476c3e61f86d22b5fe0a4466edeb937b63 (patch) | |
tree | fe6d0ba58ead9ac175cb311d9c8b769689d78952 /lib/puppet | |
parent | 88b6b29ea2c8852b0ac7242a0fa44554277173d5 (diff) | |
parent | 385f0094883bf30c5ec7460bd0b7a1c4c29765a1 (diff) |
Merge remote-tracking branch 'origin/4.3.x'
Diffstat (limited to 'lib/puppet')
-rw-r--r-- | lib/puppet/parser/functions/validate_cmd.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/puppet/parser/functions/validate_cmd.rb b/lib/puppet/parser/functions/validate_cmd.rb index 652aa55..c855c7e 100644 --- a/lib/puppet/parser/functions/validate_cmd.rb +++ b/lib/puppet/parser/functions/validate_cmd.rb @@ -42,6 +42,9 @@ module Puppet::Parser::Functions rescue Puppet::ExecutionFailure => detail msg += "\n#{detail}" raise Puppet::ParseError, msg + rescue SystemCallError => detail + msg += "\nWin32::Process::SystemCallError #{detail}" + raise Puppet::ParseError, msg ensure tmpfile.unlink end |