diff --git a/process.c b/process.c index 48eee5dc75..f5ccbbe1d2 100644 --- a/process.c +++ b/process.c @@ -1472,10 +1472,10 @@ check_exec_redirect_fd(VALUE v, int iskey) fd = fptr->fd; } else { + wrong: rb_raise(rb_eArgError, "wrong exec redirect"); } if (fd < 0) { - wrong: rb_raise(rb_eArgError, "negative file descriptor"); } #ifdef _WIN32