Skip to content

Commit f9a322b

Browse files
committed
docs: improve explanation
1 parent dfbc7f8 commit f9a322b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

user_guide_src/source/database/transactions.rst

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ Strict Mode can be disabled as follows:
6161
Managing Errors
6262
===============
6363

64-
If you have error reporting enabled in your **app/Config/Database.php** file
65-
you'll see a standard error message if the commit was unsuccessful. If
66-
debugging is turned off, you can manage your own errors like this:
64+
When you have ``DBDebug`` true in your **app/Config/Database.php** file,
65+
if a query error occurs, all the queries will be rolled backed, and an exception
66+
will be thrown. So you'll see a standard error page.
67+
68+
If the ``DBDebug`` is false, you can manage your own errors like this:
6769

6870
.. literalinclude:: transactions/003.php
6971

0 commit comments

Comments
 (0)