On 2008-10-27, Brian Candler <b.candler@pobox.com> wrote:
> It's possible the exception is being raised where you do not expect it,
> e.g. in smtp.finish
You are right, exception was raised by smtp.finish, and I really did
not expect it !
> Try to find out exactly what line in mailing_3.rb generates the
> exception. The fact that it is hidden under "... 8 levels..." is
> annoying here.
Yes, and I should rewrite those nested loops in a clean way.
> I'm not sure if there's a generic way to stop Ruby suppressing the
> intermediate levels of the exception report, but a simple solution is to
> wrap your code with:
>
> begin
> .. rest of code
> rescue Exception => e
> STDERR.puts "#{e.message}\n#{e.backtrace.join("\n")}"
> end
Thank you for your time and all these informations.