In example code, placing a necessary semicolon after a try/catch code-block, and...
Jason McIntosh [Wed, 10 Apr 2013 20:23:25 +0000 (16:23 -0400)]
lib/DBIx/Class/Manual/Cookbook.pod

index 21d720e..70b8b82 100644 (file)
@@ -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