From: Harry Ohlsen Date: 2002-12-08T15:41:15+09:00 Subject: Re: Ruminations... On Sun, 8 Dec 2002 16:31, Gavin Sinclair wrote: > From: "Ted" > > > I was looking at "Ruby in a Nutshell" on Amazon's site and came across > > this > > in the Introduction on page 3: > > begin > > f = open(path) > > rescue > > puts "#{path} does not exist." > > exit 1 > > end > Correct, it should rescue a specific error, like Errno::ENOENT. Or at least print the actual exception, which will tell you why the open failed. I'm willing to give Matz a break, though. I owe him one :-).