From: Jeff King Date: Mon, 14 Jun 2010 09:20:25 GMT Subject: Re: [PATCH] Git.pm: better error message Message-ID: <20100614092024.GA7854@sigill.intra.peff.net> In-Reply-To: <20100614091916.GB31387@swoosh> On Mon, Jun 14, 2010 at 11:19:16AM +0200, Philippe Bruhat (BooK) wrote: > Come to think of it, it probably makes sense: -d probably depends on stat > to get the information about the file, and that fails harder when the > file in question doesn't exists. Yeah, that makes sense to me. > I guess the best would be to put the directory name in the error message > (always interesting information), and keep $! in case it was set by an > harder error. Agreed. -Peff