From: "S. Robert James" Date: 2006-11-18T05:00:09+09:00 Subject: Re: When Rake goes "Ache!" Jim Weirich wrote: > Does something like this work ... > > > $migrate_failed = false > task :migrate do > begin > puts "Migrating" > fail "Oops" > rescue > $migrate_failed = true > end > end Thanks - will try it out. Not all fails throw exceptions (right? it's considered a fail if sh "false"), but I can always catch that and throw an exception manually. > -- > Posted via http://www.ruby-forum.com/. Wow! The famous Jim himself uses ruby-forum. Should quiet all those who complain about it :-)