Re: [Ssh-sftp-perl-users] Net::SSH::Perl error handling
Brought to you by:
dbrobins
From: Mark A. F. <mar...@ea...> - 2005-03-09 18:27:21
|
From: Ofer Nave <on...@sh...> >there isn't the slightest mention of error handling in the docs. How do you tell when something didn't work, and how do you find out what went wrong? I don't know if we're talking about the same thing, but I put all my method calls inside an eval. I trapped the die signal in the eval and accumulated the messages in an array. After the method call (more precisely, after the eval), I detected whether the die signal handler had been invoked, and I logged the collected messages, took remedial action (like retrying the operation), etc. I posted samples of this a year or more ago. They should be in the archive. Mark |