From: Dave Thomas Date: 2002-07-19T10:39:52+09:00 Subject: Re: Can you only catch errors one level deep? Philip Mak writes: > I think the problem is that people see code like this: > > begin > require 'somefile' > rescue LoadError > # do something > end > > and assume that if "# do something" is executed, then it means that > 'somefile' did not exist or isn't readable. I'm not sure that's a justified assumption -- all you really know is that there was a problem loading the file. You could always test separately to see if the file existed and was readable. Dave