Hi Jim,

Thanks for the quick response.

> I decided to just catch StandardError in safe_ln, on the theory
> that if ln fails for any reason it is probably ok to try the copy.

Sorry, that doesn't work. NotImplementedError does not derive from
StandardError. You'll have to catch Excpetion:

irb(main):003:0> NotImplementedError.ancestors
=> [NotImplementedError, ScriptError, Exception, Object, Find,
FileTest, FileUtils, FileUtils::StreamUtils_, PP::ObjectMixin, Kernel]

irb(main):004:0> StandardError.ancestors
=> [StandardError, Exception, Object, Find, FileTest, FileUtils,
FileUtils::StreamUtils_, PP::ObjectMixin, Kernel]

Cheers,
Assaph

_______________________________________________
Rake-devel mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rake-devel

Reply via email to