Throwing errors under Perl
Hi,
I have a problem with error handling in perl
All the latest versions of WinSCP, ActivePerl, Perl modules...
I am using this example with sftp server running under Centos. The Windows machine is 2012R2
https://winscp.net/eng/docs/library_perl#example
Well all works apart from error handling...
For error handling testing I tried non existing file names, etc
$transferResult->Check();
Nothing happens here... Nada. What am I missing?
I did the same tests with the powershell example script.. And it works exactly as expected!
( https://winscp.net/eng/docs/library_powershell#example )
It throws the errors like a dream.
The problem is I have to use perl... any idea what could be wrong? I suspect something in Win32::OLE;
Anyone got an idea?
I have a problem with error handling in perl
All the latest versions of WinSCP, ActivePerl, Perl modules...
I am using this example with sftp server running under Centos. The Windows machine is 2012R2
https://winscp.net/eng/docs/library_perl#example
Well all works apart from error handling...
For error handling testing I tried non existing file names, etc
$transferResult->Check();
Nothing happens here... Nada. What am I missing?
I did the same tests with the powershell example script.. And it works exactly as expected!
( https://winscp.net/eng/docs/library_powershell#example )
It throws the errors like a dream.
The problem is I have to use perl... any idea what could be wrong? I suspect something in Win32::OLE;
Anyone got an idea?