Thanks for the reply, Andrei. Your solution works. 

Jerome's solution doesn't work. I think Jerome and I made the wrong assumption 
that recover returns an error. Apparently, recover returns an interface. That's 
why recover assignment to error doesn't work.

Thanks again for all the replies.

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to