I'm familar with it. I don't think it would make much of a difference for what 
I'm doing here. Your code is exactly equivelant to:
 
try

rescue => e
    puts ("Test failed.  Error:  " + e)
end
 
Daniel Kurtz
Consultant
Olenick & Associates
205 W. Wacker Drive
Suite 2010
Chicago, IL 60606
312-332-0096
www.olenick.com

________________________________

From: [EMAIL PROTECTED] on behalf of Chris McMahon
Sent: Wed 7/27/2005 9:32 AM
To: [email protected]
Subject: Re: [Wtr-general] Script return values



Do you know about $!?  It holds the last error Ruby encountered.  Instead of

> rescue
>      puts("TEST FAILED.")
> end

try

rescue
    puts ("Test failed.  Error:  " + $!)
end


<<winmail.dat>>

_______________________________________________
Wtr-general mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/wtr-general

Reply via email to