X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FClass%2FManual%2FCookbook.pod;fp=lib%2FDBIx%2FClass%2FManual%2FCookbook.pod;h=70b8b822b3cf2e9b8e2ec066083757f0ba2ed4b9;hb=8a6e95d2d989e2ad5dfd0bd49af8c16cb0b6c9bb;hp=21d720e10e2360e8ce7451ea394f3d56238ea836;hpb=f4fdfd698d337ae49dc1ccd93e751e04dcde045c;p=dbsrgits%2FDBIx-Class.git diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index 21d720e..70b8b82 100644 --- a/lib/DBIx/Class/Manual/Cookbook.pod +++ b/lib/DBIx/Class/Manual/Cookbook.pod @@ -1357,9 +1357,9 @@ row. }); } catch { $exception = $_; - } + }; - if ($caught) { + if ($exception) { # There was an error while handling the $job. Rollback all changes # since the transaction started, including the already committed # ('released') savepoints. There will be neither a new $job nor any