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 :-)