Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
psibi committed Apr 14, 2016
1 parent 7026baa commit 1e06e07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cookbook/Handling-Persistence-Exception.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ postgreSQLTest = runNoLoggingT $ withPostgresqlPool conn 10 $ liftSqlPersistMPoo
liftIO $ print "Going to insert jane twice"

insertJane
insertJane
insertJane -- This should cause exception

users <- getUsers
liftIO $ print users
Expand Down Expand Up @@ -214,7 +214,7 @@ transaction1 :: (MonadIO m, MonadCatch m) => ReaderT SqlBackend m ()
transaction1 = (do
liftIO $ print "Inside transaction 1"
insertJane
insertJane
insertJane -- This should cause exception
liftIO $ print "This should not be printed (transaction 1)"
u <- getUsers
liftIO $ print u
Expand Down

0 comments on commit 1e06e07

Please sign in to comment.