HomePhorge

(#8413) Only try to catch Process::Error if it's defined
f7e526b86a01Unpublished

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

(#8413) Only try to catch Process::Error if it's defined

This error class is only defined when using the win32-process gem on
Windows. So rather than always trying to rescue Process::Error (which of
course causes its own error), we build a list of classes to rescue,
which initially only contains Errno::ESRCH, and add Process::Error if
it exists.

Details

Provenance
Nick Lewis <nick@puppetlabs.com>Authored on
vanmeeuwenPushed on Jun 2 2015, 2:22 PM
Parents
rPU2af580256d2b: Merge pull request #74 from nicklewis/ticket/2.7.x/8413
Branches
Unknown
Tags
Unknown

Event Timeline

Nick Lewis <nick@puppetlabs.com> committed rPUf7e526b86a01: (#8413) Only try to catch Process::Error if it's defined (authored by Nick Lewis <nick@puppetlabs.com>).Sep 1 2011, 8:49 PM