From 8a6e95d2d989e2ad5dfd0bd49af8c16cb0b6c9bb Mon Sep 17 00:00:00 2001 From: Jason McIntosh Date: Wed, 10 Apr 2013 16:23:25 -0400 Subject: [PATCH] In example code, placing a necessary semicolon after a try/catch code-block, and correcting a nearby variable name. --- lib/DBIx/Class/Manual/Cookbook.pod | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/DBIx/Class/Manual/Cookbook.pod b/lib/DBIx/Class/Manual/Cookbook.pod index 21d720e10..70b8b822b 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