From: Jason McIntosh Date: Wed, 10 Apr 2013 20:23:25 +0000 (-0400) Subject: In example code, placing a necessary semicolon after a try/catch code-block, and... X-Git-Tag: v0.08250~35 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=8a6e95d2d989e2ad5dfd0bd49af8c16cb0b6c9bb;p=dbsrgits%2FDBIx-Class.git In example code, placing a necessary semicolon after a try/catch code-block, and correcting a nearby variable name. --- 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