From 78edd167ace617f4647701e70b79e32f1cbd2ab0 Mon Sep 17 00:00:00 2001 From: jluehrs2 Date: Fri, 17 Aug 2007 18:36:35 -0500 Subject: this should have been a croak --- lib/IO/Pty/Easy.pm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/IO/Pty/Easy.pm b/lib/IO/Pty/Easy.pm index a75b391..b07154f 100644 --- a/lib/IO/Pty/Easy.pm +++ b/lib/IO/Pty/Easy.pm @@ -119,8 +119,7 @@ sub spawn { # set up a pipe to use for keeping track of the child process during exec my ($readp, $writep); unless (pipe($readp, $writep)) { - carp "Failed to create a pipe"; - return; + croak "Failed to create a pipe"; } $writep->autoflush(1); -- cgit v1.2.3-54-g00ecf