Skip to content

Commit

Permalink
add idx to error
Browse files Browse the repository at this point in the history
  • Loading branch information
apocalypse committed Dec 11, 2008
1 parent 8bb32c7 commit 8e0882d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/POE/Component/SimpleDBI/SubProcess.pm
Expand Up @@ -557,7 +557,7 @@ sub DB_ATOMIC {
$sth->execute;
}
} catch Error with {
die $sth->errstr;
die "$idx: " . $sth->errstr;
};

# Finally, we clean up this statement handle
Expand All @@ -580,7 +580,7 @@ sub DB_ATOMIC {
# Get the error
my $error = shift;

$output = Make_Error( $data->{'ID'}, $e );
$output = Make_Error( $data->{'ID'}, $e . '->' . $error );
$output->{'DATA'} = 'ROLLBACK_FAILURE';
};

Expand Down

0 comments on commit 8e0882d

Please sign in to comment.