Hi,
I have some DBI code wrapped in a try/catch (Try::Tiny) clause.
Any error from try tiny is meant to be passed to the catch clause via $_,
As you can see I've tried every error variable I can think off, but all I get output is
How do I find out why the code is falling over?
Where is the error message?
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music
I have some DBI code wrapped in a try/catch (Try::Tiny) clause.
Code:
try
{
# Run SQL Command
my $sth = $db->prepare("$sel") || die "Error in getSQL ($error): $sel";
$sth->execute();
}
catch
{
die "$_ - $! - $@ - $DBI::errstr - $DBI::err";
};
Any error from try tiny is meant to be passed to the catch clause via $_,
As you can see I've tried every error variable I can think off, but all I get output is
- - - - -
How do I find out why the code is falling over?
Where is the error message?
Thanks,
1DMF
"In complete darkness we are all the same, it is only our knowledge and wisdom that separates us, don't let your eyes deceive you."
"If a shortcut was meant to be easy, it wouldn't be a shortcut, it would be the way!"
Free Electronic Dance Music