]> git.ipfire.org Git - thirdparty/psycopg.git/commitdiff
Fix typo/improve errors docs
authorDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 5 Feb 2022 22:43:13 +0000 (23:43 +0100)
committerDaniele Varrazzo <daniele.varrazzo@gmail.com>
Sat, 5 Feb 2022 22:43:13 +0000 (23:43 +0100)
docs/api/errors.rst

index 388d3870ca47c81b3e4c21390c186d96676e0c2d..4c44a4110a4fb5ee29a538aa23677d1b3449d230 100644 (file)
@@ -46,7 +46,7 @@ These classes are exposed both by this module and the root `psycopg` module.
         The code of the error, if defined.
 
         This is a class attribute defined for all the
-        :ref:`sqlstate-exceptions` classed, `None` for the base classes.
+        :ref:`sqlstate-exceptions` classes, `!None` for the base classes.
 
 .. autoexception:: Warning()
 .. autoexception:: InterfaceError()
@@ -70,8 +70,8 @@ Error diagnostics
 
 .. autoclass:: Diagnostic()
 
-    The object is returned by the `Error.diag` attribute and is passed to the
-    callback functions registered with
+    The object is available as the `~psycopg.Error`.\ `~psycopg.Error.diag`
+    attribute and is passed to the callback functions registered with
     `~psycopg.Connection.add_notice_handler()`.
 
     All the information available from the :pq:`PQresultErrorField()` function